Skip to content

Commit b75e250

Browse files
committed
x86: remove arch specific early_init_dt_alloc_memory_arch
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>
1 parent f7a6e01 commit b75e250

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎arch/x86/kernel/devicetree.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/*
33
* Architecture specific OF callbacks.
44
*/
5-
#include <linux/bootmem.h>
65
#include <linux/export.h>
76
#include <linux/io.h>
87
#include <linux/interrupt.h>
@@ -39,11 +38,6 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)
3938
BUG();
4039
}
4140

42-
void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
43-
{
44-
return __alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS));
45-
}
46-
4741
void __init add_dtb(u64 data)
4842
{
4943
initial_dtb = data + offsetof(struct setup_data, data);

0 commit comments

Comments
 (0)