summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/pm-imx7ulp.c
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2020-02-13 16:35:33 +0800
committerShawn Guo <shawnguo@kernel.org>2020-02-18 17:46:08 +0800
commit4a4fb66119eb7135e6ce9cf61488c86f9888bb15 (patch)
tree4316ba67f1cf3204c410959fc60b82943442609f /arch/arm/mach-imx/pm-imx7ulp.c
parentcc56f77e526dd1b7b29b4529367747fc4c789c66 (diff)
downloadlinux-4a4fb66119eb7135e6ce9cf61488c86f9888bb15.tar.gz
linux-4a4fb66119eb7135e6ce9cf61488c86f9888bb15.tar.bz2
linux-4a4fb66119eb7135e6ce9cf61488c86f9888bb15.zip
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>
Diffstat (limited to 'arch/arm/mach-imx/pm-imx7ulp.c')
-rw-r--r--arch/arm/mach-imx/pm-imx7ulp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/pm-imx7ulp.c b/arch/arm/mach-imx/pm-imx7ulp.c
index 7b2f7387e662..2e756d8191fa 100644
--- a/arch/arm/mach-imx/pm-imx7ulp.c
+++ b/arch/arm/mach-imx/pm-imx7ulp.c
@@ -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);