]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/arm64/kernel/setup.c
of: create default early_init_dt_add_memory_arch
[karo-tx-linux.git] / arch / arm64 / kernel / setup.c
index 4a5f6243ade26cd9ca34a0e6cdd7f280869c5bad..7feb0c97d0dd0faf9b2ab2fbea569b4fae8c7af9 100644 (file)
@@ -147,24 +147,6 @@ static void __init setup_machine_fdt(phys_addr_t dt_phys)
        pr_info("Machine: %s\n", machine_name);
 }
 
-void __init early_init_dt_add_memory_arch(u64 base, u64 size)
-{
-       base &= PAGE_MASK;
-       size &= PAGE_MASK;
-       if (base + size < PHYS_OFFSET) {
-               pr_warning("Ignoring memory block 0x%llx - 0x%llx\n",
-                          base, base + size);
-               return;
-       }
-       if (base < PHYS_OFFSET) {
-               pr_warning("Ignoring memory range 0x%llx - 0x%llx\n",
-                          base, PHYS_OFFSET);
-               size -= PHYS_OFFSET - base;
-               base = PHYS_OFFSET;
-       }
-       memblock_add(base, size);
-}
-
 /*
  * Limit the memory size that was specified via FDT.
  */