summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/fsl-dcu
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2016-07-04 10:40:40 +0300
committerStefan Agner <stefan@agner.ch>2016-07-16 04:06:28 +0300
commit64bf74ee7d30c93c7e1956e212a0041badd627bc (patch)
tree4b54e3a07832780377dc8883a599cff63738ea24 /drivers/gpu/drm/fsl-dcu
parentf82c13722275b6aca3a956a82846465ec789b367 (diff)
downloadlinux-64bf74ee7d30c93c7e1956e212a0041badd627bc.tar.xz
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");