[PATCH] mpc85xx_ads: add in missing of_node_put()

Stephen Rothwell sfr at canb.auug.org.au
Sun Dec 23 09:50:38 EST 2007


On Fri, 21 Dec 2007 10:40:09 -0500 Paul Gortmaker <paul.gortmaker at windriver.com> wrote:
>
> cpm2_pic_init() does its own of_node_get() so we should do an of_node_put()
> before calling it.

The of_node_put() should really go after the call to cpm2_pic_init(), that
way you retain a raised ref count at all times.  Sorry fo not being
entirely clear before.

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20071223/da6ae477/attachment.pgp>


More information about the Linuxppc-dev mailing list