diff options
author | Qais Yousef <qais.yousef@imgtec.com> | 2013-12-06 06:00:45 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-01-23 07:02:36 -0500 |
commit | 7e8a2762dcdcc271656c4333848d6d796c3f5a42 (patch) | |
tree | 0c2714dd3a6901efbbce78f586169b8ff9852ba9 /arch/mips | |
parent | 187e7c5f87822262e41b157acc2ab79e0b20a4db (diff) |
MIPS: sead3: use unflatten_and_copy_device_tree()
we want the device tree to be unflattened into non init memory so it can be
accessed later by, for example, a probing function of a driver module.
Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
Reviewed-by: Paul Burton <paul.burton@imgtec.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6210/
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/mti-sead3/sead3-setup.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/arch/mips/mti-sead3/sead3-setup.c b/arch/mips/mti-sead3/sead3-setup.c index 541a90798d42..bf7fe48bf2f9 100644 --- a/arch/mips/mti-sead3/sead3-setup.c +++ b/arch/mips/mti-sead3/sead3-setup.c | |||
@@ -10,7 +10,6 @@ | |||
10 | #include <linux/libfdt.h> | 10 | #include <linux/libfdt.h> |
11 | #include <linux/of_platform.h> | 11 | #include <linux/of_platform.h> |
12 | #include <linux/of_fdt.h> | 12 | #include <linux/of_fdt.h> |
13 | #include <linux/bootmem.h> | ||
14 | 13 | ||
15 | #include <asm/prom.h> | 14 | #include <asm/prom.h> |
16 | #include <asm/fw/fw.h> | 15 | #include <asm/fw/fw.h> |
@@ -98,18 +97,10 @@ void __init plat_mem_setup(void) | |||
98 | 97 | ||
99 | void __init device_tree_init(void) | 98 | void __init device_tree_init(void) |
100 | { | 99 | { |
101 | unsigned long base, size; | ||
102 | |||
103 | if (!initial_boot_params) | 100 | if (!initial_boot_params) |
104 | return; | 101 | return; |
105 | 102 | ||
106 | base = virt_to_phys((void *)initial_boot_params); | 103 | unflatten_and_copy_device_tree(); |
107 | size = be32_to_cpu(initial_boot_params->totalsize); | ||
108 | |||
109 | /* Before we do anything, lets reserve the dt blob */ | ||
110 | reserve_bootmem(base, size, BOOTMEM_DEFAULT); | ||
111 | |||
112 | unflatten_device_tree(); | ||
113 | } | 104 | } |
114 | 105 | ||
115 | static int __init customize_machine(void) | 106 | static int __init customize_machine(void) |