gpu: drm: rockchip_drm_drv: add missing of_node_put after calling of_parse_phandle
authorPeter Chen <[email protected]>
Tue, 5 Jul 2016 02:04:48 +0000 (10:04 +0800)
committerDaniel Vetter <[email protected]>
Tue, 12 Jul 2016 13:45:49 +0000 (15:45 +0200)
of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.

Cc: Mark Yao <[email protected]>
Cc: Heiko Stuebner <[email protected]>
Signed-off-by: Peter Chen <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/rockchip/rockchip_drm_drv.c

index d665fb04d264992fe937b7a3cb7a1512681f2d6d..f0bd1ee8b128300f2f453df3a0a3b80f71550a00 100644 (file)
@@ -433,6 +433,7 @@ static int rockchip_drm_platform_probe(struct platform_device *pdev)
                        is_support_iommu = false;
                }
 
+               of_node_put(iommu);
                component_match_add(dev, &match, compare_of, port->parent);
                of_node_put(port);
        }