mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 06:08:22 +00:00
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>
This commit is contained in:
parent
f82c137222
commit
64bf74ee7d
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue