]> git.sur5r.net Git - u-boot/blobdiff - drivers/mailbox/mailbox-uclass.c
libfdt: Bring in upstream stringlist functions
[u-boot] / drivers / mailbox / mailbox-uclass.c
index 40f851d915490e793326588b2831c66523802c7b..a7fcde51d593a105a3f49db713993958b533bea8 100644 (file)
@@ -85,10 +85,10 @@ int mbox_get_by_name(struct udevice *dev, const char *name,
 
        debug("%s(dev=%p, name=%s, chan=%p)\n", __func__, dev, name, chan);
 
-       index = fdt_find_string(gd->fdt_blob, dev->of_offset, "mbox-names",
-                               name);
+       index = fdt_stringlist_search(gd->fdt_blob, dev->of_offset,
+                                     "mbox-names", name);
        if (index < 0) {
-               debug("fdt_find_string() failed: %d\n", index);
+               debug("fdt_stringlist_search() failed: %d\n", index);
                return index;
        }