summaryrefslogtreecommitdiff
path: root/arch/arc/kernel/setup.c
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-08-26 16:23:27 (GMT)
committerRob Herring <rob.herring@calxeda.com>2013-10-09 16:38:03 (GMT)
commit1efc959e0b28942d69d3084ecd4e9bde3beb9866 (patch)
treec4a0901a07a7641f400069d1a3048e9f96979b6e /arch/arc/kernel/setup.c
parenta8bf7527a2e17ccf1366e67f6ac728327ca34c40 (diff)
downloadlinux-fsl-qoriq-1efc959e0b28942d69d3084ecd4e9bde3beb9866.tar.xz
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/setup.c')
-rw-r--r--arch/arc/kernel/setup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c
index 2c68bc7e..710bf89 100644
--- a/arch/arc/kernel/setup.c
+++ b/arch/arc/kernel/setup.c
@@ -346,8 +346,7 @@ void __init setup_arch(char **cmdline_p)
setup_arch_memory();
/* copy flat DT out of .init and then unflatten it */
- copy_devtree();
- unflatten_device_tree();
+ unflatten_and_copy_device_tree();
/* Can be issue if someone passes cmd line arg "ro"
* But that is unlikely so keeping it as it is