diff options
author | Peter Chen <peter.chen@nxp.com> | 2016-07-15 05:17:02 +0200 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2016-07-15 14:47:01 +0200 |
commit | 0697a05ff347b7bf8c7f872aba9f4cdfb5418459 (patch) | |
tree | 981316a8e6d4125c509c85972bc2ac9109b3a5d3 /drivers/gpu/drm/omapdrm | |
parent | Revert "drm: Resurrect atomic rmfb code" (diff) | |
download | linux-0697a05ff347b7bf8c7f872aba9f4cdfb5418459.tar.xz linux-0697a05ff347b7bf8c7f872aba9f4cdfb5418459.zip |
gpu: drm: omapdrm: connector-dvi: add missing of_node_put after calling of_parse_phandle
of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/omapdrm')
-rw-r--r-- | drivers/gpu/drm/omapdrm/displays/connector-dvi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/omapdrm/displays/connector-dvi.c b/drivers/gpu/drm/omapdrm/displays/connector-dvi.c index 75f7827525cf..684b7aeda411 100644 --- a/drivers/gpu/drm/omapdrm/displays/connector-dvi.c +++ b/drivers/gpu/drm/omapdrm/displays/connector-dvi.c @@ -255,6 +255,7 @@ static int dvic_probe_of(struct platform_device *pdev) adapter_node = of_parse_phandle(node, "ddc-i2c-bus", 0); if (adapter_node) { adapter = of_get_i2c_adapter_by_node(adapter_node); + of_node_put(adapter_node); if (adapter == NULL) { dev_err(&pdev->dev, "failed to parse ddc-i2c-bus\n"); omap_dss_put_device(ddata->in); |