提交 6d5fa28c 编写于 作者: P Peter Chen 提交者: Daniel Vetter

gpu: drm: rockchip_drm_drv: 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: Mark Yao <mark.yao@rock-chips.com>
Cc: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: NPeter Chen <peter.chen@nxp.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1467684294-20111-2-git-send-email-peter.chen@nxp.com
上级 e8ef1b69
...@@ -433,6 +433,7 @@ static int rockchip_drm_platform_probe(struct platform_device *pdev) ...@@ -433,6 +433,7 @@ static int rockchip_drm_platform_probe(struct platform_device *pdev)
is_support_iommu = false; is_support_iommu = false;
} }
of_node_put(iommu);
component_match_add(dev, &match, compare_of, port->parent); component_match_add(dev, &match, compare_of, port->parent);
of_node_put(port); of_node_put(port);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册