summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mvebu/pmsu.c
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@marvell.com>2013-08-27 06:41:14 +0200
committerJason Cooper <jason@lakedaemon.net>2013-09-18 18:40:53 +0200
commitabe511ac85de60f6d6ce1272b91c079d73bf8517 (patch)
tree723e206ba90e190aaabfe4aa3e53be0e06ebb6de /arch/arm/mach-mvebu/pmsu.c
parentLinux 3.12-rc1 (diff)
downloadlinux-abe511ac85de60f6d6ce1272b91c079d73bf8517.tar.xz
linux-abe511ac85de60f6d6ce1272b91c079d73bf8517.zip
ARM: mvebu: add missing of_node_put() to fix reference leak
Add of_node_put to properly decrement the refcount when we are done using a given node. Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Reviewed-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Jason Cooper <jason@lakedaemon.net> Conflicts: arch/arm/mach-mvebu/armada-370-xp.c arch/arm/mach-mvebu/platsmp.c
Diffstat (limited to 'arch/arm/mach-mvebu/pmsu.c')
-rw-r--r--arch/arm/mach-mvebu/pmsu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c
index 3cc4bef6401c..27fc4f049474 100644
--- a/arch/arm/mach-mvebu/pmsu.c
+++ b/arch/arm/mach-mvebu/pmsu.c
@@ -67,6 +67,7 @@ int __init armada_370_xp_pmsu_init(void)
pr_info("Initializing Power Management Service Unit\n");
pmsu_mp_base = of_iomap(np, 0);
pmsu_reset_base = of_iomap(np, 1);
+ of_node_put(np);
}
return 0;