summaryrefslogtreecommitdiffstats
path: root/arch/openrisc
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@linaro.org>2013-08-28 22:18:32 +0200
committerGrant Likely <grant.likely@linaro.org>2013-08-28 22:18:32 +0200
commita1727da599ad030ccaf4073473fd235c8ee28219 (patch)
tree8e3cd21c4657e725a922fe2ee0da8bd8dfdb6b1c /arch/openrisc
parentof: Make of_get_phy_mode() return int i.s.o. const int (diff)
downloadlinux-a1727da599ad030ccaf4073473fd235c8ee28219.tar.xz
linux-a1727da599ad030ccaf4073473fd235c8ee28219.zip
of: consolidate definition of early_init_dt_alloc_memory_arch()
Most architectures use the same implementation. Collapse the common ones into a single weak function that can be overridden. Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'arch/openrisc')
-rw-r--r--arch/openrisc/kernel/prom.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/openrisc/kernel/prom.c b/arch/openrisc/kernel/prom.c
index 150215a91711..a63e76872f84 100644
--- a/arch/openrisc/kernel/prom.c
+++ b/arch/openrisc/kernel/prom.c
@@ -55,11 +55,6 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)
memblock_add(base, size);
}
-void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
-{
- return __va(memblock_alloc(size, align));
-}
-
void __init early_init_devtree(void *params)
{
void *alloc;