Skip to content

Commit

Permalink
sparc: Move of_console_{device,path,options} info prom_common.c
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Dec 6, 2008
1 parent 23dc758 commit ad07aed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
9 changes: 0 additions & 9 deletions arch/sparc/kernel/prom_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 0 additions & 9 deletions arch/sparc/kernel/prom_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
9 changes: 9 additions & 0 deletions arch/sparc/kernel/prom_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ad07aed

Please sign in to comment.