summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/gpc.c
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2020-02-13 09:35:33 +0100
committerShawn Guo <shawnguo@kernel.org>2020-02-18 10:46:08 +0100
commit4a4fb66119eb7135e6ce9cf61488c86f9888bb15 (patch)
tree4316ba67f1cf3204c410959fc60b82943442609f /arch/arm/mach-imx/gpc.c
parentARM: imx: Remove unused include of linux/of.h on mach-imx6sl.c (diff)
downloadlinux-4a4fb66119eb7135e6ce9cf61488c86f9888bb15.tar.xz
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/gpc.c')
-rw-r--r--arch/arm/mach-imx/gpc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/gpc.c b/arch/arm/mach-imx/gpc.c
index e96baa493318..fb3cba87940d 100644
--- a/arch/arm/mach-imx/gpc.c
+++ b/arch/arm/mach-imx/gpc.c
@@ -282,4 +282,5 @@ void __init imx_gpc_check_dt(void)
/* map GPC, so that at least CPUidle and WARs keep working */
gpc_base = of_iomap(np, 0);
}
+ of_node_put(np);
}