diff options
author | Rob Herring <rob.herring@calxeda.com> | 2013-09-24 23:20:01 -0400 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2013-10-09 12:38:19 -0400 |
commit | 068f6310b965d67d57f89ebf4c539e5933754366 (patch) | |
tree | 7f149f244a5d6451d4f4b4122e2a7fefe06ccf66 /arch/openrisc | |
parent | 7745fc1fec6ec9556e4cc36c21b0e02589078902 (diff) |
of: create default early_init_dt_add_memory_arch
Create a weak version of early_init_dt_add_memory_arch which uses
memblock. This will unify all architectures except ones with custom
memory bank structs.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Jonas Bonn <jonas@southpole.se>
Acked-by: Grant Likely <grant.likely@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: microblaze-uclinux@itee.uq.edu.au
Cc: linux@lists.openrisc.net
Cc: devicetree@vger.kernel.org
Diffstat (limited to 'arch/openrisc')
-rw-r--r-- | arch/openrisc/kernel/prom.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/openrisc/kernel/prom.c b/arch/openrisc/kernel/prom.c index fbed459ea365..6dbcaa85421c 100644 --- a/arch/openrisc/kernel/prom.c +++ b/arch/openrisc/kernel/prom.c | |||
@@ -47,12 +47,6 @@ | |||
47 | #include <asm/sections.h> | 47 | #include <asm/sections.h> |
48 | #include <asm/setup.h> | 48 | #include <asm/setup.h> |
49 | 49 | ||
50 | void __init early_init_dt_add_memory_arch(u64 base, u64 size) | ||
51 | { | ||
52 | size &= PAGE_MASK; | ||
53 | memblock_add(base, size); | ||
54 | } | ||
55 | |||
56 | void __init early_init_devtree(void *params) | 50 | void __init early_init_devtree(void *params) |
57 | { | 51 | { |
58 | early_init_dt_scan(params); | 52 | early_init_dt_scan(params); |