Skip to contentSkip to conversation

: sparc: Move of_console_{device,path,options} info

PATCH In review David Miller 1 participant 1 message Dec 6, 2008 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 14/14 : sparc: Move of_console_{device,path,options} info

sparc: Move of_console_{device,path,options} info prom_common.c

---
 arch/sparc/kernel/prom_32.c     |    9 ---------
 arch/sparc/kernel/prom_64.c     |    9 ---------
 arch/sparc/kernel/prom_common.c |    9 +++++++++
 3 files changed, 9 insertions(+), 18 deletions(-)
arch/sparc/kernel/prom_32.c +0 -9
index 5ad2012..f21e8fc 100644
@@ -166,15 +166,6 @@ char * __init build_path_component(struct device_node *dp)
 	return n;
 }
 
-struct device_node *of_console_device;
-EXPORT_SYMBOL(of_console_device);
-
-char *of_console_path;
-EXPORT_SYMBOL(of_console_path);
-
-char *of_console_options;
-EXPORT_SYMBOL(of_console_options);
-
 extern void restore_current(void);
 
 void __init of_console_init(void)
arch/sparc/kernel/prom_64.c +0 -9
index 3afb838..edecca7 100644
@@ -526,15 +526,6 @@ void __init of_fill_in_cpu_data(void)
 	smp_fill_in_sib_core_maps();
 }
 
-struct device_node *of_console_device;
-EXPORT_SYMBOL(of_console_device);
-
-char *of_console_path;
-EXPORT_SYMBOL(of_console_path);
-
-char *of_console_options;
-EXPORT_SYMBOL(of_console_options);
-
 void __init of_console_init(void)
 {
 	char *msg = "OF stdout device is: %s\n";
arch/sparc/kernel/prom_common.c +9 -0
index 95e8e5d..2736f3d 100644
@@ -25,6 +25,15 @@
 
 #include "prom.h"
 
+struct device_node *of_console_device;
+EXPORT_SYMBOL(of_console_device);
+
+char *of_console_path;
+EXPORT_SYMBOL(of_console_path);
+
+char *of_console_options;
+EXPORT_SYMBOL(of_console_options);
+
 struct device_node *of_find_node_by_phandle(phandle handle)
 {
 	struct device_node *np;
Signature · 1 line
1.5.6.5