genalloc: fix device node resource counter
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Thu, 25 Sep 2014 23:05:25 +0000 (16:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Sep 2014 15:10:35 +0000 (08:10 -0700)
commit6f3aabd183984120acb59f5d57a45cfa7455be9a
treeab7ced2490a464b6d0656b5f0ef125ad7c1329b2
parent451ff6d40929c0d63e4fd22145160953b81a7dd2
genalloc: fix device node resource counter

Decrement the np_pool device_node refcount, which was incremented on
the preceding of_parse_phandle() call.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Olof Johansson <olof@lixom.net>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/genalloc.c