diff options
author | David S. Miller <davem@davemloft.net> | 2008-12-05 21:16:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-05 21:16:48 -0500 |
commit | 23dc758e47aeb3cc2414c2ec69b7b3e95f447071 (patch) | |
tree | 70ba39d6f4ed24b67ef987b6fb528abcfbac28a7 /arch/sparc/kernel/prom_32.c | |
parent | 6524036a1e5736a07466208362d83ddf31aae3ac (diff) |
sparc: Move prom_build_devicetree() into prom_common.c
To make this work we provide a dummy nop implementation
of of_fill_in_cpu_data() for sparc32.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/prom_32.c')
-rw-r--r-- | arch/sparc/kernel/prom_32.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/arch/sparc/kernel/prom_32.c b/arch/sparc/kernel/prom_32.c index 75eb40be5e8a..5ad2012ae104 100644 --- a/arch/sparc/kernel/prom_32.c +++ b/arch/sparc/kernel/prom_32.c | |||
@@ -27,8 +27,6 @@ | |||
27 | 27 | ||
28 | #include "prom.h" | 28 | #include "prom.h" |
29 | 29 | ||
30 | static unsigned int prom_early_allocated; | ||
31 | |||
32 | void * __init prom_early_alloc(unsigned long size) | 30 | void * __init prom_early_alloc(unsigned long size) |
33 | { | 31 | { |
34 | void *ret; | 32 | void *ret; |
@@ -179,7 +177,7 @@ EXPORT_SYMBOL(of_console_options); | |||
179 | 177 | ||
180 | extern void restore_current(void); | 178 | extern void restore_current(void); |
181 | 179 | ||
182 | static void __init of_console_init(void) | 180 | void __init of_console_init(void) |
183 | { | 181 | { |
184 | char *msg = "OF stdout device is: %s\n"; | 182 | char *msg = "OF stdout device is: %s\n"; |
185 | struct device_node *dp; | 183 | struct device_node *dp; |
@@ -297,20 +295,6 @@ static void __init of_console_init(void) | |||
297 | printk(msg, of_console_path); | 295 | printk(msg, of_console_path); |
298 | } | 296 | } |
299 | 297 | ||
300 | void __init prom_build_devicetree(void) | 298 | void __init of_fill_in_cpu_data(void) |
301 | { | 299 | { |
302 | struct device_node **nextp; | ||
303 | |||
304 | allnodes = prom_create_node(prom_root_node, NULL); | ||
305 | allnodes->path_component_name = ""; | ||
306 | allnodes->full_name = "/"; | ||
307 | |||
308 | nextp = &allnodes->allnext; | ||
309 | allnodes->child = prom_build_tree(allnodes, | ||
310 | prom_getchild(allnodes->node), | ||
311 | &nextp); | ||
312 | of_console_init(); | ||
313 | |||
314 | printk("PROM: Built device tree with %u bytes of memory.\n", | ||
315 | prom_early_allocated); | ||
316 | } | 300 | } |