]> git.sur5r.net Git - u-boot/blobdiff - lib/fdtdec.c
tools/kwbimage: add DEBUG option
[u-boot] / lib / fdtdec.c
index 4defb902b87297d03f891ea18b26647bd19fccc9..4e619c49a2ffb2332a06c62906753b3b2eba3262 100644 (file)
@@ -836,7 +836,7 @@ int fdtdec_get_child_count(const void *blob, int node)
        int subnode;
        int num = 0;
 
-       fdt_for_each_subnode(blob, subnode, node)
+       fdt_for_each_subnode(subnode, blob, node)
                num++;
 
        return num;
@@ -1014,7 +1014,7 @@ int fdt_get_named_resource(const void *fdt, int node, const char *property,
 {
        int index;
 
-       index = fdt_find_string(fdt, node, prop_names, name);
+       index = fdt_stringlist_search(fdt, node, prop_names, name);
        if (index < 0)
                return index;