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/system-controller.c | |
parent | 272b98c6455f00884f0350f775c5342358ebb73f (diff) |
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/system-controller.c')
-rw-r--r-- | arch/arm/mach-mvebu/system-controller.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-mvebu/system-controller.c b/arch/arm/mach-mvebu/system-controller.c index f875124ff4f9..5175083cdb34 100644 --- a/arch/arm/mach-mvebu/system-controller.c +++ b/arch/arm/mach-mvebu/system-controller.c @@ -98,6 +98,7 @@ static int __init mvebu_system_controller_init(void) BUG_ON(!match); system_controller_base = of_iomap(np, 0); mvebu_sc = (struct mvebu_system_controller *)match->data; + of_node_put(np); } return 0; |