diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2020-02-13 09:35:33 +0100 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2020-02-18 10:46:08 +0100 |
commit | 4a4fb66119eb7135e6ce9cf61488c86f9888bb15 (patch) | |
tree | 4316ba67f1cf3204c410959fc60b82943442609f /arch/arm/mach-imx/gpc.c | |
parent | ARM: imx: Remove unused include of linux/of.h on mach-imx6sl.c (diff) | |
download | linux-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.c | 1 |
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); } |