]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/image-fdt.c
common: miiphyutil: Add helper function for mdio bus name
[people/ms/u-boot.git] / common / image-fdt.c
index 3d23608c043ba0095f2b6a773dfb8864971cdd72..e7540be8d631c4a1cbe08e2fb7ed70306dfa61a9 100644 (file)
@@ -474,12 +474,10 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob,
                printf("ERROR: /chosen node create failed\n");
                goto err;
        }
-#ifdef CONFIG_ARCH_FIXUP_FDT
        if (arch_fixup_fdt(blob) < 0) {
                printf("ERROR: arch-specific fdt fixup failed\n");
                goto err;
        }
-#endif
        if (IMAGE_OF_BOARD_SETUP) {
                fdt_ret = ft_board_setup(blob, gd->bd);
                if (fdt_ret) {
@@ -503,7 +501,7 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob,
                lmb_free(lmb, (phys_addr_t)(u32)(uintptr_t)blob,
                         (phys_size_t)fdt_totalsize(blob));
 
-       ret = fdt_shrink_to_minimum(blob);
+       ret = fdt_shrink_to_minimum(blob, 0);
        if (ret < 0)
                goto err;
        of_size = ret;