Re: [PATCH 01/16] Add of_get_next_parent()

2007-10-26 Thread David Miller
From: Michael Ellerman <[EMAIL PROTECTED]> Date: Fri, 26 Oct 2007 16:54:31 +1000 (EST) > Iterating through a device node's parents is simple enough, but dealing > with the refcounts properly is a little ugly, and replicating that logic > is asking for someone to get it wrong or forget it all toget

[PATCH 01/16] Add of_get_next_parent()

2007-10-25 Thread Michael Ellerman
Iterating through a device node's parents is simple enough, but dealing with the refcounts properly is a little ugly, and replicating that logic is asking for someone to get it wrong or forget it all together, eg: while (dn != NULL) { /* loop body */ tmp = of_get_parent(dn);