]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
gpu: drm: omapdrm: connector-dvi: add missing of_node_put after calling of_parse_phandle
authorPeter Chen <peter.chen@nxp.com>
Fri, 15 Jul 2016 03:17:02 +0000 (11:17 +0800)
committerSean Paul <seanpaul@chromium.org>
Fri, 15 Jul 2016 12:47:01 +0000 (08:47 -0400)
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>
drivers/gpu/drm/omapdrm/displays/connector-dvi.c

index 75f7827525cf8e17b7a9bb643dd72dc532ac5b0f..684b7aeda411a859299930d174e953450df58775 100644 (file)
@@ -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);