ARM: dts: uniphier: sync DT with latest Linux
[oweals/u-boot.git] / arch / arm / mach-uniphier / board_late_init.c
index a45412677a0ffcfad93ca01f7a6ee222471f90ce..f23295fbd2128016318a72368d62facba60e6e2a 100644 (file)
@@ -37,13 +37,12 @@ static int uniphier_set_fdt_file(void)
        const char *compat;
        char dtb_name[256];
        int buf_len = 256;
-       int ret;
 
        if (getenv("fdt_file"))
                return 0;       /* do nothing if it is already set */
 
-       ret = fdt_get_string(gd->fdt_blob, 0, "compatible", &compat);
-       if (ret)
+       compat = fdt_stringlist_get(gd->fdt_blob, 0, "compatible", 0, NULL);
+       if (!compat)
                return -EINVAL;
 
        if (strncmp(compat, VENDOR_PREFIX, strlen(VENDOR_PREFIX)))