aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-01-05 17:10:24 -0500
committerRob Herring <robh@kernel.org>2018-01-30 12:15:54 -0500
commitac94f18f6636d45a7d78f74d2a741d038d0f8c10 (patch)
tree8895276a4513dd6f3d45b8bcc92022fe30f297ae
parent0fbc0b67a89d756ae3a839be01440e54348159a0 (diff)
metag: remove arch specific early DT functions
Now that the DT core code handles bootmem arches, we can remove the metag specific early_init_dt_alloc_memory_arch function. As the default early_init_dt_add_memory_arch just does a WARN, we can remove it too. Cc: James Hogan <jhogan@kernel.org> Cc: linux-metag@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
-rw-r--r--arch/metag/kernel/devtree.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/metag/kernel/devtree.c b/arch/metag/kernel/devtree.c
index 18dd7aea9fdc..6af749a64438 100644
--- a/arch/metag/kernel/devtree.c
+++ b/arch/metag/kernel/devtree.c
@@ -14,26 +14,12 @@
14#include <linux/init.h> 14#include <linux/init.h>
15#include <linux/export.h> 15#include <linux/export.h>
16#include <linux/types.h> 16#include <linux/types.h>
17#include <linux/bootmem.h>
18#include <linux/memblock.h>
19#include <linux/of.h>
20#include <linux/of_fdt.h> 17#include <linux/of_fdt.h>
21 18
22#include <asm/setup.h> 19#include <asm/setup.h>
23#include <asm/page.h> 20#include <asm/page.h>
24#include <asm/mach/arch.h> 21#include <asm/mach/arch.h>
25 22
26void __init early_init_dt_add_memory_arch(u64 base, u64 size)
27{
28 pr_err("%s(%llx, %llx)\n",
29 __func__, base, size);
30}
31
32void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
33{
34 return alloc_bootmem_align(size, align);
35}
36
37static const void * __init arch_get_next_mach(const char *const **match) 23static const void * __init arch_get_next_mach(const char *const **match)
38{ 24{
39 static const struct machine_desc *mdesc = __arch_info_begin; 25 static const struct machine_desc *mdesc = __arch_info_begin;