]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
libfdt: Forgot one function when cleaning the namespace
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 29 Jul 2008 04:51:22 +0000 (14:51 +1000)
committerGerald Van Baren <vanbaren@cideas.com>
Mon, 25 Aug 2008 02:20:49 +0000 (22:20 -0400)
In commit b6d80a20fc293f3b995c3ce1a6744a5574192125, we renamed all
libfdt functions to be prefixed with fdt_ or _fdt_ to minimise the
chance of collisions with things from whatever package libfdt is
embedded in, pulled into the libfdt build via that environment's
libfdt_env.h.

Except... I missed one.  This patch applies the same treatment to
_stringlist_contains().  While we're at it, also make it static since
it's only used in the same file.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
libfdt/fdt_ro.c

index 326d19c219323f117c75f454991de20607ae1680..6292a00be5d30c2beaaf3d75fffb139628575f08 100644 (file)
@@ -412,7 +412,8 @@ int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle)
                                             &phandle, sizeof(phandle));
 }
 
-int _stringlist_contains(const char *strlist, int listlen, const char *str)
+static int _fdt_stringlist_contains(const char *strlist, int listlen,
+                                   const char *str)
 {
        int len = strlen(str);
        const char *p;
@@ -438,7 +439,7 @@ int fdt_node_check_compatible(const void *fdt, int nodeoffset,
        prop = fdt_getprop(fdt, nodeoffset, "compatible", &len);
        if (!prop)
                return len;
-       if (_stringlist_contains(prop, len, compatible))
+       if (_fdt_stringlist_contains(prop, len, compatible))
                return 0;
        else
                return 1;