]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
x86: Drop unused copy_fdt_to_ram()
authorSimon Glass <sjg@chromium.org>
Fri, 31 Jul 2015 15:31:29 +0000 (09:31 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:00:52 +0000 (08:00 +0200)
This is now handled by generic U-Boot code so we do not need an x86 version.
It is no-longer called, so remove it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/include/asm/relocate.h
arch/x86/lib/relocate.c

index eb186b9fb8959d2d9b9ce6dfa7024b750897a35f..cff3abc23a5e324f91a9495a37bf2a7c8d7c1598 100644 (file)
@@ -11,7 +11,6 @@
 #include <common.h>
 
 int copy_uboot_to_ram(void);
-int copy_fdt_to_ram(void);
 int clear_bss(void);
 int do_elf_reloc_fixups(void);
 
index b33586b54c0311a9b596cbcca23ed357ab78b3e0..1a62142a1eec3cbef1d519606e3cee0e9d57a751 100644 (file)
@@ -17,8 +17,6 @@
 
 #include <common.h>
 #include <inttypes.h>
-#include <libfdt.h>
-#include <malloc.h>
 #include <asm/u-boot-x86.h>
 #include <asm/relocate.h>
 #include <asm/sections.h>
@@ -35,22 +33,6 @@ int copy_uboot_to_ram(void)
        return 0;
 }
 
-int copy_fdt_to_ram(void)
-{
-       if (gd->new_fdt) {
-               ulong fdt_size;
-
-               fdt_size = ALIGN(fdt_totalsize(gd->fdt_blob) + 0x1000, 32);
-
-               memcpy(gd->new_fdt, gd->fdt_blob, fdt_size);
-               debug("Relocated fdt from %p to %p, size %lx\n",
-                      gd->fdt_blob, gd->new_fdt, fdt_size);
-               gd->fdt_blob = gd->new_fdt;
-       }
-
-       return 0;
-}
-
 int clear_bss(void)
 {
        ulong dst_addr = (ulong)&__bss_start + gd->reloc_off;