ARM: imx: Add missing of_node_put()
After finishing using device node got from of_find_compatible_node(), of_node_put() needs to be called. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
This commit is contained in:
@@ -62,6 +62,7 @@ void __init imx7ulp_pm_init(void)
|
||||
|
||||
np = of_find_compatible_node(NULL, NULL, "fsl,imx7ulp-smc1");
|
||||
smc1_base = of_iomap(np, 0);
|
||||
of_node_put(np);
|
||||
WARN_ON(!smc1_base);
|
||||
|
||||
imx7ulp_set_lpm(ULP_PM_RUN);
|
||||
|
Reference in New Issue
Block a user