summaryrefslogtreecommitdiffstats
path: root/arch/arc/kernel/devtree.c
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-08-26 11:23:27 -0500
committerRob Herring <rob.herring@calxeda.com>2013-10-09 11:38:03 -0500
commit1efc959e0b28942d69d3084ecd4e9bde3beb9866 (patch)
treec4a0901a07a7641f400069d1a3048e9f96979b6e /arch/arc/kernel/devtree.c
parenta8bf7527a2e17ccf1366e67f6ac728327ca34c40 (diff)
downloadlinux-1efc959e0b28942d69d3084ecd4e9bde3beb9866.tar.bz2
arc: use unflatten_and_copy_device_tree
Use the common unflatten_and_copy_device_tree to copy the built-in FDT out of init section. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Acked-by: Vineet Gupta <vgupta@synopsys.com> Acked-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'arch/arc/kernel/devtree.c')
-rw-r--r--arch/arc/kernel/devtree.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/arch/arc/kernel/devtree.c b/arch/arc/kernel/devtree.c
index 2340af0e1d6f..eeb613aa44ff 100644
--- a/arch/arc/kernel/devtree.c
+++ b/arch/arc/kernel/devtree.c
@@ -100,18 +100,3 @@ struct machine_desc * __init setup_machine_fdt(void *dt)
return mdesc_best;
}
-
-/*
- * Copy the flattened DT out of .init since unflattening doesn't copy strings
- * and the normal DT APIs refs them from orig flat DT
- */
-void __init copy_devtree(void)
-{
- void *alloc = early_init_dt_alloc_memory_arch(
- be32_to_cpu(initial_boot_params->totalsize), 64);
- if (alloc) {
- memcpy(alloc, initial_boot_params,
- be32_to_cpu(initial_boot_params->totalsize));
- initial_boot_params = alloc;
- }
-}