arm: arch_timer: balance device_node refcounting
authorMark Rutland <mark.rutland@arm.com>
Wed, 19 Dec 2012 11:37:49 +0000 (11:37 +0000)
committerMark Rutland <mark.rutland@arm.com>
Thu, 31 Jan 2013 15:50:56 +0000 (15:50 +0000)
commit2b55d10c46815d9660c0f1bc6044f7019ff384aa
tree0eedfc2b33e3447926a713bdf914333e6fda339a
parent9931faca02c604c22335f5a935a501bb2ace6e20
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>
arch/arm/kernel/arch_timer.c