OSDN Git Service

[POWERPC] bootwrapper: Make ft_get_parent() return a phandle, and NULL if already...
authorScott Wood <scottwood@freescale.com>
Mon, 12 Mar 2007 20:41:56 +0000 (14:41 -0600)
committerPaul Mackerras <paulus@samba.org>
Fri, 16 Mar 2007 04:49:11 +0000 (15:49 +1100)
commita9ec7669fc07f80f6e39807f1ac319764a304319
treecce2cf16a4b2f2dcf88b0b21399e9f29e3fa0de6
parentc350038b2bdabb07611dcc8116b55f917ada09fa
[POWERPC] bootwrapper: Make ft_get_parent() return a phandle, and NULL if already top-level.

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@freescale.com>
Acked-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/flatdevtree.c
arch/powerpc/boot/flatdevtree.h