aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/pm-imx6.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-imx6.c
parentARM: imx: Remove unused include of linux/of.h on mach-imx6sl.c (diff)
downloadlinux-dev-4a4fb66119eb7135e6ce9cf61488c86f9888bb15.tar.xz
linux-dev-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-imx6.c')
-rw-r--r--arch/arm/mach-imx/pm-imx6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c
index 1c0ecad3620e..dd34dff13762 100644
--- a/arch/arm/mach-imx/pm-imx6.c
+++ b/arch/arm/mach-imx/pm-imx6.c
@@ -655,6 +655,8 @@ void __init imx6_pm_ccm_init(const char *ccm_compat)
if (of_property_read_bool(np, "fsl,pmic-stby-poweroff"))
imx6_pm_stby_poweroff_probe();
+
+ of_node_put(np);
}
void __init imx6q_pm_init(void)