From: Peter Chen Date: Mon, 4 Jul 2016 07:40:40 +0000 (+0800) Subject: drm/fsl-dcu: add missing of_node_put after calling of_parse_phandle X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=64bf74ee7d30c93c7e1956e212a0041badd627bc;p=linux-beck.git 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 Signed-off-by: Stefan Agner --- 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");