summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mvebu
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-02-08 07:17:12 +0100
committerGregory CLEMENT <gregory.clement@free-electrons.com>2016-02-08 17:30:14 +0100
commit7d8f9ac16223cf14f199a96355b0add4ca286662 (patch)
tree291c73fcb0ee77e375bef95bdfe1702aa4dbd416 /arch/arm/mach-mvebu
parentARM: mv78xx0: use "depends on" instead of "if" after prompt (diff)
downloadlinux-7d8f9ac16223cf14f199a96355b0add4ca286662.tar.xz
linux-7d8f9ac16223cf14f199a96355b0add4ca286662.zip
ARM: mvebu: add missing of_node_put()
This node pointer is returned 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: Gregory CLEMENT <gregory.clement@free-electrons.com>
Diffstat (limited to 'arch/arm/mach-mvebu')
-rw-r--r--arch/arm/mach-mvebu/platsmp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-mvebu/platsmp.c b/arch/arm/mach-mvebu/platsmp.c
index f9597b701028..46c742d3bd41 100644
--- a/arch/arm/mach-mvebu/platsmp.c
+++ b/arch/arm/mach-mvebu/platsmp.c
@@ -140,6 +140,7 @@ static void __init armada_xp_smp_prepare_cpus(unsigned int max_cpus)
panic("Cannot find 'marvell,bootrom' compatible node");
err = of_address_to_resource(node, 0, &res);
+ of_node_put(node);
if (err < 0)
panic("Cannot get 'bootrom' node address");