]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
fdt: Rename fdt_resize() to fdt_shrink_to_minimum()
authorSimon Glass <sjg@chromium.org>
Wed, 30 Jul 2014 09:59:02 +0000 (03:59 -0600)
committerTom Rini <trini@ti.com>
Sat, 9 Aug 2014 15:17:03 +0000 (11:17 -0400)
Since libfdt now has an fdt_resize() function, we need to rename the
U-Boot one.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/cmd_fdt.c
common/fdt_support.c
common/image-fdt.c
include/fdt_support.h

index e86d992838ee2986f57e9466271b4d393a7e05a0..5640ded296895d8bf2dbd6b1e99ba565d52e1377 100644 (file)
@@ -621,7 +621,7 @@ static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        }
        /* resize the fdt */
        else if (strncmp(argv[1], "re", 2) == 0) {
-               fdt_resize(working_fdt);
+               fdt_shrink_to_minimum(working_fdt);
        }
        else {
                /* Unrecognized command */
index 7927a83b896988441d3358a0071c55c26c4c2bb5..784a570a818bd94fdb8dd086a4020f5652c91c00 100644 (file)
@@ -508,7 +508,7 @@ void fdt_fixup_ethernet(void *fdt)
 }
 
 /* Resize the fdt to its actual size + a bit of padding */
-int fdt_resize(void *blob)
+int fdt_shrink_to_minimum(void *blob)
 {
        int i;
        uint64_t addr, size;
index db6e39556277323a522761827bea9d5516e07e23..a2342fa3dfdd07c1de766200986cfac97579aa4d 100644 (file)
@@ -479,7 +479,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_resize(blob);
+       ret = fdt_shrink_to_minimum(blob);
        if (ret < 0)
                return ret;
        of_size = ret;
index fd44d7e2f6495227bbcc34e9ece430921082e4da..1bda686a0b944c4b213f395fcb915bc4d25abedb 100644 (file)
@@ -76,7 +76,7 @@ void ft_cpu_setup(void *blob, bd_t *bd);
 void ft_pci_setup(void *blob, bd_t *bd);
 
 void set_working_fdt_addr(void *addr);
-int fdt_resize(void *blob);
+int fdt_shrink_to_minimum(void *blob);
 int fdt_increase_size(void *fdt, int add_len);
 
 int fdt_fixup_nor_flash_size(void *blob);