summaryrefslogtreecommitdiff
path: root/arch/c6x/kernel
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@linaro.org>2013-08-29 00:18:32 +0400
committerGrant Likely <grant.likely@linaro.org>2013-08-29 00:18:32 +0400
commita1727da599ad030ccaf4073473fd235c8ee28219 (patch)
tree8e3cd21c4657e725a922fe2ee0da8bd8dfdb6b1c /arch/c6x/kernel
parent7e0bdf15cee7d2c809558b8169dc5b08792d0c82 (diff)
downloadlinux-a1727da599ad030ccaf4073473fd235c8ee28219.tar.xz
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/c6x/kernel')
-rw-r--r--arch/c6x/kernel/devicetree.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/c6x/kernel/devicetree.c b/arch/c6x/kernel/devicetree.c
index 287d0e64dfba..9e15ab9199b2 100644
--- a/arch/c6x/kernel/devicetree.c
+++ b/arch/c6x/kernel/devicetree.c
@@ -45,8 +45,3 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)
{
c6x_add_memory(base, size);
}
-
-void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
-{
- return __va(memblock_alloc(size, align));
-}