diff options
author | Jisheng Zhang <jszhang@marvell.com> | 2013-08-27 12:41:14 +0800 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2013-09-18 16:40:53 +0000 |
commit | abe511ac85de60f6d6ce1272b91c079d73bf8517 (patch) | |
tree | 723e206ba90e190aaabfe4aa3e53be0e06ebb6de /arch/arm/mach-mvebu/pmsu.c | |
parent | 272b98c6455f00884f0350f775c5342358ebb73f (diff) | |
download | blackbird-op-linux-abe511ac85de60f6d6ce1272b91c079d73bf8517.tar.gz blackbird-op-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.c | 1 |
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; |