]> git.baikalelectronics.ru Git - kernel.git/commitdiff
x86: remove arch specific early_init_dt_alloc_memory_arch
authorRob Herring <robh@kernel.org>
Fri, 5 Jan 2018 22:14:00 +0000 (16:14 -0600)
committerRob Herring <robh@kernel.org>
Tue, 30 Jan 2018 17:17:37 +0000 (11:17 -0600)
Now that the DT core code handles bootmem arches, we can remove the x86
specific early_init_dt_alloc_memory_arch function.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: x86@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
arch/x86/kernel/devicetree.c

index 76e07698e6d1524fe7c55ba73acbfe8e9911e68a..25de5f6ca997a9020e120698a040e26ce6302448 100644 (file)
@@ -2,7 +2,6 @@
 /*
  * Architecture specific OF callbacks.
  */
-#include <linux/bootmem.h>
 #include <linux/export.h>
 #include <linux/io.h>
 #include <linux/interrupt.h>
@@ -39,11 +38,6 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)
        BUG();
 }
 
-void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
-{
-       return __alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS));
-}
-
 void __init add_dtb(u64 data)
 {
        initial_dtb = data + offsetof(struct setup_data, data);