summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/flatdevtree_misc.c
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2007-09-06 05:21:04 +1000
committerPaul Mackerras <paulus@samba.org>2007-09-14 01:33:23 +1000
commit4674f2f33948432469e52d5bcaeda9904e34fe46 (patch)
treea58ebf94e2d09ddada9365f8d1401efcaef5e088 /arch/powerpc/boot/flatdevtree_misc.c
parent6bcc4c01755fd2066bc374193cf3b0849cbabe47 (diff)
[POWERPC] bootwrapper: flatdevtree fixes
1. ft_create_node was returning the internal pointer rather than a phandle. 2. ft_find_device_rel was treating a "top" phandle of NULL as an error, rather than as the root of the tree. The old, absolute ft_find_device is removed, and the relative version is renamed to ft_find_device(). Signed-off-by: Scott Wood <scottwood@freescale.com> Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/flatdevtree_misc.c')
-rw-r--r--arch/powerpc/boot/flatdevtree_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/boot/flatdevtree_misc.c b/arch/powerpc/boot/flatdevtree_misc.c
index 4341e6558c1..8d1debe8d94 100644
--- a/arch/powerpc/boot/flatdevtree_misc.c
+++ b/arch/powerpc/boot/flatdevtree_misc.c
@@ -18,7 +18,7 @@ static struct ft_cxt cxt;
static void *fdtm_finddevice(const char *name)
{
- return ft_find_device(&cxt, name);
+ return ft_find_device(&cxt, NULL, name);
}
static int fdtm_getprop(const void *phandle, const char *propname,