Skip to content

Commit 3a6fbcb

Browse files
committed
xtensa: remove arch specific early DT functions
Now that the DT core code handles bootmem arches, we can remove the xtensa specific early_init_dt_alloc_memory_arch function. The common early_init_dt_add_memory_arch can be used too now that xtensa switched to memblock. Cc: Chris Zankel <chris@zankel.net> Cc: linux-xtensa@linux-xtensa.org Acked-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Rob Herring <robh@kernel.org>
1 parent b75e250 commit 3a6fbcb

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

‎arch/xtensa/kernel/setup.c‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <linux/mm.h>
2121
#include <linux/proc_fs.h>
2222
#include <linux/screen_info.h>
23-
#include <linux/bootmem.h>
2423
#include <linux/kernel.h>
2524
#include <linux/percpu.h>
2625
#include <linux/cpu.h>
@@ -218,17 +217,6 @@ static int __init xtensa_dt_io_area(unsigned long node, const char *uname,
218217
}
219218
#endif
220219

221-
void __init early_init_dt_add_memory_arch(u64 base, u64 size)
222-
{
223-
size &= PAGE_MASK;
224-
memblock_add(base, size);
225-
}
226-
227-
void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
228-
{
229-
return __alloc_bootmem(size, align, 0);
230-
}
231-
232220
void __init early_init_devtree(void *params)
233221
{
234222
early_init_dt_scan(params);

0 commit comments

Comments
 (0)