aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arc/kernel
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@linaro.org>2013-08-28 16:18:32 -0400
committerGrant Likely <grant.likely@linaro.org>2013-08-28 16:18:32 -0400
commita1727da599ad030ccaf4073473fd235c8ee28219 (patch)
tree8e3cd21c4657e725a922fe2ee0da8bd8dfdb6b1c /arch/arc/kernel
parent7e0bdf15cee7d2c809558b8169dc5b08792d0c82 (diff)
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/arc/kernel')
-rw-r--r--arch/arc/kernel/devtree.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/arc/kernel/devtree.c b/arch/arc/kernel/devtree.c
index bdee3a812052..2340af0e1d6f 100644
--- a/arch/arc/kernel/devtree.c
+++ b/arch/arc/kernel/devtree.c
@@ -18,12 +18,6 @@
18#include <asm/clk.h> 18#include <asm/clk.h>
19#include <asm/mach_desc.h> 19#include <asm/mach_desc.h>
20 20
21/* called from unflatten_device_tree() to bootstrap devicetree itself */
22void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
23{
24 return __va(memblock_alloc(size, align));
25}
26
27/** 21/**
28 * setup_machine_fdt - Machine setup when an dtb was passed to the kernel 22 * setup_machine_fdt - Machine setup when an dtb was passed to the kernel
29 * @dt: virtual address pointer to dt blob 23 * @dt: virtual address pointer to dt blob