summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/arch_timer.c
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2012-12-19 12:37:49 +0100
committerMark Rutland <mark.rutland@arm.com>2013-01-31 16:50:56 +0100
commit2b55d10c46815d9660c0f1bc6044f7019ff384aa (patch)
tree0eedfc2b33e3447926a713bdf914333e6fda339a /arch/arm/kernel/arch_timer.c
parentLinux 3.8-rc3 (diff)
downloadlinux-2b55d10c46815d9660c0f1bc6044f7019ff384aa.tar.xz
linux-2b55d10c46815d9660c0f1bc6044f7019ff384aa.zip
arm: arch_timer: balance device_node refcounting
When we get the device_node for the arch timer, it's refcount is automatically incremented in of_find_matching_node, but it is never decremented. This patch decrements the refcount on the node after we're finished using it. Reported-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/kernel/arch_timer.c')
-rw-r--r--arch/arm/kernel/arch_timer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/kernel/arch_timer.c b/arch/arm/kernel/arch_timer.c
index c8ef20747ee7..6dd73c67d864 100644
--- a/arch/arm/kernel/arch_timer.c
+++ b/arch/arm/kernel/arch_timer.c
@@ -488,6 +488,8 @@ int __init arch_timer_of_register(void)
for (i = PHYS_SECURE_PPI; i < MAX_TIMER_PPI; i++)
arch_timer_ppi[i] = irq_of_parse_and_map(np, i);
+ of_node_put(np);
+
/*
* If no interrupt provided for virtual timer, we'll have to
* stick to the physical timer. It'd better be accessible...