diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-02-26 16:16:07 +0900 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2016-03-18 17:36:26 +0100 |
commit | 9eca796ee385ee61488fbe62fa83224e13abcfe0 (patch) | |
tree | 7e93088935b35254294358eba7308a76f8a265a7 /arch/arm | |
parent | 2a993a587e268459e376303aa894a6b236565b6d (diff) |
ARM: uniphier: add missing of_node_put()
This node pointer is allocated by of_find_compatible_node() in this
function. It should be put before exitting this function.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-uniphier/platsmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-uniphier/platsmp.c b/arch/arm/mach-uniphier/platsmp.c index e1cfc1d6e2f4..8d988f53318c 100644 --- a/arch/arm/mach-uniphier/platsmp.c +++ b/arch/arm/mach-uniphier/platsmp.c @@ -100,6 +100,7 @@ static int __init uniphier_smp_prepare_trampoline(unsigned int max_cpus) np = of_find_compatible_node(NULL, NULL, "socionext,uniphier-system-bus-controller"); + of_node_put(np); ret = of_address_to_resource(np, 1, &res); if (ret) { pr_err("failed to get resource of system-bus-controller\n"); |