summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/fsl-dcu
diff options
context:
space:
mode:
authorPeter Chen2016-07-04 09:40:40 +0200
committerStefan Agner2016-07-16 03:06:28 +0200
commit64bf74ee7d30c93c7e1956e212a0041badd627bc (patch)
tree4b54e3a07832780377dc8883a599cff63738ea24 /drivers/gpu/drm/fsl-dcu
parentMerge branch 'exynos-drm-next' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff)
downloadkernel-qcow2-linux-64bf74ee7d30c93c7e1956e212a0041badd627bc.tar.gz
kernel-qcow2-linux-64bf74ee7d30c93c7e1956e212a0041badd627bc.tar.xz
kernel-qcow2-linux-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')
-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");