Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64bf74ee authored by Peter Chen's avatar Peter Chen Committed by Stefan Agner
Browse files

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: default avatarPeter Chen <peter.chen@nxp.com>
Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
parent f82c1372
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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");