[PATCH 12/19] bootwrapper: Make ft_get_parent() return a phandle, and NULL if already top-level.

Mark A. Greer mgreer at mvista.com
Wed Mar 14 09:05:42 EST 2007


On Mon, Mar 12, 2007 at 02:41:56PM -0600, Scott Wood wrote:
> Most of ft_get_parent() is factored out into __ft_get_parent(), which
> deals only in internal node pointers.  The ft_get_parent() wrapper
> handles phandle conversion in both directions (previously,
> ft_get_parent() did not convert its return value).
> 
> It also now returns NULL as the parent of the toplevel node, rather than
> just returning the toplevel node again (which made it rather useless in
> loops).
> 
> Signed-off-by: Scott Wood <scottwood at freescale.com>

Acked-by: Mark A. Greer <mgreer at mvista.com>



More information about the Linuxppc-dev mailing list