aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/flatdevtree.c
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2007-03-12 16:41:44 -0400
committerPaul Mackerras <paulus@samba.org>2007-03-13 06:15:46 -0400
commit1c53a496ba6132a37f052aa907e23445b3fe928c (patch)
tree60e707eb355b5575256add3511e3a18d72508b69 /arch/powerpc/boot/flatdevtree.c
parent7c71c04625483c1da91846fd6746057d24ad6be8 (diff)
[POWERPC] bootwrapper: Rename ft_node_add() to ft_get_phandle().
This name better reflects what the function does, which is to look up the phandle for an internal node pointer, and add it to the internal pointer to phandle table if not found. Signed-off-by: Scott Wood <scottwood@freescale.com> Acked-by: Mark A. Greer <mgreer@mvista.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.c')
-rw-r--r--arch/powerpc/boot/flatdevtree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/boot/flatdevtree.c b/arch/powerpc/boot/flatdevtree.c
index 02823a868b95..971420af08d4 100644
--- a/arch/powerpc/boot/flatdevtree.c
+++ b/arch/powerpc/boot/flatdevtree.c
@@ -36,7 +36,7 @@ static char *ft_root_node(struct ft_cxt *cxt)
36 36
37/* Routines for keeping node ptrs returned by ft_find_device current */ 37/* Routines for keeping node ptrs returned by ft_find_device current */
38/* First entry not used b/c it would return 0 and be taken as NULL/error */ 38/* First entry not used b/c it would return 0 and be taken as NULL/error */
39static void *ft_node_add(struct ft_cxt *cxt, char *node) 39static void *ft_get_phandle(struct ft_cxt *cxt, char *node)
40{ 40{
41 unsigned int i; 41 unsigned int i;
42 42
@@ -642,7 +642,7 @@ void *ft_find_device(struct ft_cxt *cxt, const char *srch_path)
642 if (srch_path[0] != '/') 642 if (srch_path[0] != '/')
643 return NULL; 643 return NULL;
644 node = ft_find_descendent(cxt, ft_root_node(cxt), srch_path); 644 node = ft_find_descendent(cxt, ft_root_node(cxt), srch_path);
645 return ft_node_add(cxt, node); 645 return ft_get_phandle(cxt, node);
646} 646}
647 647
648void *ft_find_descendent(struct ft_cxt *cxt, void *top, const char *srch_path) 648void *ft_find_descendent(struct ft_cxt *cxt, void *top, const char *srch_path)