summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/prom_32.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-12-06 03:16:48 +0100
committerDavid S. Miller <davem@davemloft.net>2008-12-06 03:16:48 +0100
commit23dc758e47aeb3cc2414c2ec69b7b3e95f447071 (patch)
tree70ba39d6f4ed24b67ef987b6fb528abcfbac28a7 /arch/sparc/kernel/prom_32.c
parentsparc: Move core of OF device tree building code into prom_common.c (diff)
downloadlinux-23dc758e47aeb3cc2414c2ec69b7b3e95f447071.tar.xz
linux-23dc758e47aeb3cc2414c2ec69b7b3e95f447071.zip
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.c20
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 @@
#include "prom.h"
-static unsigned int prom_early_allocated;
-
void * __init prom_early_alloc(unsigned long size)
{
void *ret;
@@ -179,7 +177,7 @@ EXPORT_SYMBOL(of_console_options);
extern void restore_current(void);
-static void __init of_console_init(void)
+void __init of_console_init(void)
{
char *msg = "OF stdout device is: %s\n";
struct device_node *dp;
@@ -297,20 +295,6 @@ static void __init of_console_init(void)
printk(msg, of_console_path);
}
-void __init prom_build_devicetree(void)
+void __init of_fill_in_cpu_data(void)
{
- struct device_node **nextp;
-
- allnodes = prom_create_node(prom_root_node, NULL);
- allnodes->path_component_name = "";
- allnodes->full_name = "/";
-
- nextp = &allnodes->allnext;
- allnodes->child = prom_build_tree(allnodes,
- prom_getchild(allnodes->node),
- &nextp);
- of_console_init();
-
- printk("PROM: Built device tree with %u bytes of memory.\n",
- prom_early_allocated);
}