]> git.sur5r.net Git - u-boot/blobdiff - common/image-fdt.c
dm: spi: xilinx_spi: Convert to driver model
[u-boot] / common / image-fdt.c
index d9e47283c716c4d47b709e1390a78dd376f95b08..80e3e63805cdca31ec0c780c45ab79c3ec601dc1 100644 (file)
@@ -14,6 +14,7 @@
 #include <errno.h>
 #include <image.h>
 #include <libfdt.h>
+#include <mapmem.h>
 #include <asm/io.h>
 
 #ifndef CONFIG_SYS_FDT_PAD
@@ -470,6 +471,10 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob,
        int ret = -EPERM;
        int fdt_ret;
 
+       if (fdt_root(blob) < 0) {
+               printf("ERROR: root node setup failed\n");
+               goto err;
+       }
        if (fdt_chosen(blob) < 0) {
                printf("ERROR: /chosen node create failed\n");
                goto err;