aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/fsl-dcu/fsl_tcon.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2016-07-04 15:40:40 +0800
committerStefan Agner <stefan@agner.ch>2016-07-15 18:06:28 -0700
commit64bf74ee7d30c93c7e1956e212a0041badd627bc (patch)
tree4b54e3a07832780377dc8883a599cff63738ea24 /drivers/gpu/drm/fsl-dcu/fsl_tcon.c
parentMerge branch 'exynos-drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-next (diff)
downloadlinux-dev-64bf74ee7d30c93c7e1956e212a0041badd627bc.tar.xz
linux-dev-64bf74ee7d30c93c7e1956e212a0041badd627bc.zip
drm/fsl-dcu: 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, but current code only calls it at error path, fix it by adding it at correct code path. Signed-off-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Stefan Agner <stefan@agner.ch>
Diffstat (limited to 'drivers/gpu/drm/fsl-dcu/fsl_tcon.c')
-rw-r--r--drivers/gpu/drm/fsl-dcu/fsl_tcon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/fsl-dcu/fsl_tcon.c b/drivers/gpu/drm/fsl-dcu/fsl_tcon.c
index bbe34f1c0505..bca09ea24632 100644
--- a/drivers/gpu/drm/fsl-dcu/fsl_tcon.c
+++ b/drivers/gpu/drm/fsl-dcu/fsl_tcon.c
@@ -92,6 +92,7 @@ struct fsl_tcon *fsl_tcon_init(struct device *dev)
goto err_node_put;
}
+ of_node_put(np);
clk_prepare_enable(tcon->ipg_clk);
dev_info(dev, "Using TCON in bypass mode\n");