[POWERPC] Fix unbalanced uses of of_node_put
authorNathan Lynch <ntl@pobox.com>
Tue, 2 Jan 2007 22:37:06 +0000 (16:37 -0600)
committerPaul Mackerras <paulus@samba.org>
Tue, 9 Jan 2007 06:03:01 +0000 (17:03 +1100)
commit5e264a5215e4b703b1bbeb2910ea4441886be8d7
treed77db6c86355cc91d4a6373f55af57e9e63c0dad
parent6aa3e1e9447134ccda8b04b91c4ba8182274a78e
[POWERPC] Fix unbalanced uses of of_node_put

The (maple|pasemi)_init_IRQ functions call of_node_put(root) once more
than they should, causing the refcount of the root node to underflow,
which triggers the WARN_ON in kref_get.

Signed-off-by: Nathan Lynch <ntl@pobox.com>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/maple/setup.c
arch/powerpc/platforms/pasemi/setup.c