]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[POWERPC] bootwrapper: Rename ft_node_add() to ft_get_phandle().
authorScott Wood <scottwood@freescale.com>
Mon, 12 Mar 2007 20:41:44 +0000 (14:41 -0600)
committerPaul Mackerras <paulus@samba.org>
Tue, 13 Mar 2007 10:15:46 +0000 (21:15 +1100)
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>
arch/powerpc/boot/flatdevtree.c

index 02823a868b95b27e6426e342a64b242b737f835c..971420af08d470ec345ef3b59398f3bd7646223a 100644 (file)
@@ -36,7 +36,7 @@ static char *ft_root_node(struct ft_cxt *cxt)
 
 /* Routines for keeping node ptrs returned by ft_find_device current */
 /* First entry not used b/c it would return 0 and be taken as NULL/error */
-static void *ft_node_add(struct ft_cxt *cxt, char *node)
+static void *ft_get_phandle(struct ft_cxt *cxt, char *node)
 {
        unsigned int i;
 
@@ -642,7 +642,7 @@ void *ft_find_device(struct ft_cxt *cxt, const char *srch_path)
        if (srch_path[0] != '/')
                return NULL;
        node = ft_find_descendent(cxt, ft_root_node(cxt), srch_path);
-       return ft_node_add(cxt, node);
+       return ft_get_phandle(cxt, node);
 }
 
 void *ft_find_descendent(struct ft_cxt *cxt, void *top, const char *srch_path)