diff options
Diffstat (limited to 'arch/mips/txx9/rbtx4938/setup.c')
-rw-r--r-- | arch/mips/txx9/rbtx4938/setup.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/arch/mips/txx9/rbtx4938/setup.c b/arch/mips/txx9/rbtx4938/setup.c index 2ef71adea827..aaa987ae0f83 100644 --- a/arch/mips/txx9/rbtx4938/setup.c +++ b/arch/mips/txx9/rbtx4938/setup.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <asm/time.h> | 23 | #include <asm/time.h> |
24 | #include <asm/txx9tmr.h> | 24 | #include <asm/txx9tmr.h> |
25 | #include <asm/io.h> | 25 | #include <asm/io.h> |
26 | #include <asm/bootinfo.h> | ||
27 | #include <asm/txx9/generic.h> | 26 | #include <asm/txx9/generic.h> |
28 | #include <asm/txx9/pci.h> | 27 | #include <asm/txx9/pci.h> |
29 | #include <asm/txx9/rbtx4938.h> | 28 | #include <asm/txx9/rbtx4938.h> |
@@ -34,15 +33,9 @@ | |||
34 | #include <asm/txx9/spi.h> | 33 | #include <asm/txx9/spi.h> |
35 | #include <asm/txx9pio.h> | 34 | #include <asm/txx9pio.h> |
36 | 35 | ||
37 | extern char * __init prom_getcmdline(void); | ||
38 | /* These functions are used for rebooting or halting the machine*/ | ||
39 | extern void rbtx4938_machine_restart(char *command); | ||
40 | extern void rbtx4938_machine_halt(void); | ||
41 | extern void rbtx4938_machine_power_off(void); | ||
42 | |||
43 | static int tx4938_ccfg_toeon = 1; | 36 | static int tx4938_ccfg_toeon = 1; |
44 | 37 | ||
45 | void rbtx4938_machine_halt(void) | 38 | static void rbtx4938_machine_halt(void) |
46 | { | 39 | { |
47 | printk(KERN_NOTICE "System Halted\n"); | 40 | printk(KERN_NOTICE "System Halted\n"); |
48 | local_irq_disable(); | 41 | local_irq_disable(); |
@@ -53,13 +46,13 @@ void rbtx4938_machine_halt(void) | |||
53 | ".set\tmips0"); | 46 | ".set\tmips0"); |
54 | } | 47 | } |
55 | 48 | ||
56 | void rbtx4938_machine_power_off(void) | 49 | static void rbtx4938_machine_power_off(void) |
57 | { | 50 | { |
58 | rbtx4938_machine_halt(); | 51 | rbtx4938_machine_halt(); |
59 | /* no return */ | 52 | /* no return */ |
60 | } | 53 | } |
61 | 54 | ||
62 | void rbtx4938_machine_restart(char *command) | 55 | static void rbtx4938_machine_restart(char *command) |
63 | { | 56 | { |
64 | local_irq_disable(); | 57 | local_irq_disable(); |
65 | 58 | ||