diff options
-rw-r--r-- | arch/sparc/kernel/process.c | 6 | ||||
-rw-r--r-- | arch/sparc/kernel/setup.c | 3 | ||||
-rw-r--r-- | arch/sparc/prom/misc.c | 7 | ||||
-rw-r--r-- | arch/sparc64/kernel/process.c | 8 | ||||
-rw-r--r-- | arch/sparc64/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/sparc64/kernel/sparc64_ksyms.c | 3 | ||||
-rw-r--r-- | arch/sparc64/prom/misc.c | 9 |
7 files changed, 0 insertions, 38 deletions
diff --git a/arch/sparc/kernel/process.c b/arch/sparc/kernel/process.c index 19186ce8850d..0bd69d0b5cd7 100644 --- a/arch/sparc/kernel/process.c +++ b/arch/sparc/kernel/process.c | |||
@@ -141,16 +141,12 @@ void cpu_idle(void) | |||
141 | 141 | ||
142 | extern char reboot_command []; | 142 | extern char reboot_command []; |
143 | 143 | ||
144 | extern void (*prom_palette)(int); | ||
145 | |||
146 | /* XXX cli/sti -> local_irq_xxx here, check this works once SMP is fixed. */ | 144 | /* XXX cli/sti -> local_irq_xxx here, check this works once SMP is fixed. */ |
147 | void machine_halt(void) | 145 | void machine_halt(void) |
148 | { | 146 | { |
149 | local_irq_enable(); | 147 | local_irq_enable(); |
150 | mdelay(8); | 148 | mdelay(8); |
151 | local_irq_disable(); | 149 | local_irq_disable(); |
152 | if (prom_palette) | ||
153 | prom_palette (1); | ||
154 | prom_halt(); | 150 | prom_halt(); |
155 | panic("Halt failed!"); | 151 | panic("Halt failed!"); |
156 | } | 152 | } |
@@ -165,8 +161,6 @@ void machine_restart(char * cmd) | |||
165 | 161 | ||
166 | p = strchr (reboot_command, '\n'); | 162 | p = strchr (reboot_command, '\n'); |
167 | if (p) *p = 0; | 163 | if (p) *p = 0; |
168 | if (prom_palette) | ||
169 | prom_palette (1); | ||
170 | if (cmd) | 164 | if (cmd) |
171 | prom_reboot(cmd); | 165 | prom_reboot(cmd); |
172 | if (*reboot_command) | 166 | if (*reboot_command) |
diff --git a/arch/sparc/kernel/setup.c b/arch/sparc/kernel/setup.c index 5f1508eeb84d..3c13137685da 100644 --- a/arch/sparc/kernel/setup.c +++ b/arch/sparc/kernel/setup.c | |||
@@ -65,7 +65,6 @@ struct screen_info screen_info = { | |||
65 | */ | 65 | */ |
66 | 66 | ||
67 | extern unsigned long trapbase; | 67 | extern unsigned long trapbase; |
68 | void (*prom_palette)(int); | ||
69 | 68 | ||
70 | /* Pretty sick eh? */ | 69 | /* Pretty sick eh? */ |
71 | void prom_sync_me(void) | 70 | void prom_sync_me(void) |
@@ -80,8 +79,6 @@ void prom_sync_me(void) | |||
80 | "nop\n\t" | 79 | "nop\n\t" |
81 | "nop\n\t" : : "r" (&trapbase)); | 80 | "nop\n\t" : : "r" (&trapbase)); |
82 | 81 | ||
83 | if (prom_palette) | ||
84 | prom_palette(1); | ||
85 | prom_printf("PROM SYNC COMMAND...\n"); | 82 | prom_printf("PROM SYNC COMMAND...\n"); |
86 | show_free_areas(); | 83 | show_free_areas(); |
87 | if(current->pid != 0) { | 84 | if(current->pid != 0) { |
diff --git a/arch/sparc/prom/misc.c b/arch/sparc/prom/misc.c index 37cff5f54704..d9fb3af41c1f 100644 --- a/arch/sparc/prom/misc.c +++ b/arch/sparc/prom/misc.c | |||
@@ -45,9 +45,6 @@ prom_feval(char *fstring) | |||
45 | spin_unlock_irqrestore(&prom_lock, flags); | 45 | spin_unlock_irqrestore(&prom_lock, flags); |
46 | } | 46 | } |
47 | 47 | ||
48 | /* We want to do this more nicely some day. */ | ||
49 | extern void (*prom_palette)(int); | ||
50 | |||
51 | /* Drop into the prom, with the chance to continue with the 'go' | 48 | /* Drop into the prom, with the chance to continue with the 'go' |
52 | * prom command. | 49 | * prom command. |
53 | */ | 50 | */ |
@@ -58,8 +55,6 @@ prom_cmdline(void) | |||
58 | extern void install_linux_ticker(void); | 55 | extern void install_linux_ticker(void); |
59 | unsigned long flags; | 56 | unsigned long flags; |
60 | 57 | ||
61 | if (prom_palette) | ||
62 | prom_palette (1); | ||
63 | spin_lock_irqsave(&prom_lock, flags); | 58 | spin_lock_irqsave(&prom_lock, flags); |
64 | install_obp_ticker(); | 59 | install_obp_ticker(); |
65 | (*(romvec->pv_abort))(); | 60 | (*(romvec->pv_abort))(); |
@@ -69,8 +64,6 @@ prom_cmdline(void) | |||
69 | #ifdef CONFIG_SUN_AUXIO | 64 | #ifdef CONFIG_SUN_AUXIO |
70 | set_auxio(AUXIO_LED, 0); | 65 | set_auxio(AUXIO_LED, 0); |
71 | #endif | 66 | #endif |
72 | if (prom_palette) | ||
73 | prom_palette (0); | ||
74 | } | 67 | } |
75 | 68 | ||
76 | /* Drop into the prom, but completely terminate the program. | 69 | /* Drop into the prom, but completely terminate the program. |
diff --git a/arch/sparc64/kernel/process.c b/arch/sparc64/kernel/process.c index d7e8e80d43a5..6eceac51ae62 100644 --- a/arch/sparc64/kernel/process.c +++ b/arch/sparc64/kernel/process.c | |||
@@ -113,13 +113,9 @@ void cpu_idle(void) | |||
113 | 113 | ||
114 | extern char reboot_command []; | 114 | extern char reboot_command []; |
115 | 115 | ||
116 | extern void (*prom_palette)(int); | ||
117 | |||
118 | void machine_halt(void) | 116 | void machine_halt(void) |
119 | { | 117 | { |
120 | sstate_halt(); | 118 | sstate_halt(); |
121 | if (prom_palette) | ||
122 | prom_palette (1); | ||
123 | prom_halt(); | 119 | prom_halt(); |
124 | panic("Halt failed!"); | 120 | panic("Halt failed!"); |
125 | } | 121 | } |
@@ -127,8 +123,6 @@ void machine_halt(void) | |||
127 | void machine_alt_power_off(void) | 123 | void machine_alt_power_off(void) |
128 | { | 124 | { |
129 | sstate_poweroff(); | 125 | sstate_poweroff(); |
130 | if (prom_palette) | ||
131 | prom_palette(1); | ||
132 | prom_halt_power_off(); | 126 | prom_halt_power_off(); |
133 | panic("Power-off failed!"); | 127 | panic("Power-off failed!"); |
134 | } | 128 | } |
@@ -140,8 +134,6 @@ void machine_restart(char * cmd) | |||
140 | sstate_reboot(); | 134 | sstate_reboot(); |
141 | p = strchr (reboot_command, '\n'); | 135 | p = strchr (reboot_command, '\n'); |
142 | if (p) *p = 0; | 136 | if (p) *p = 0; |
143 | if (prom_palette) | ||
144 | prom_palette (1); | ||
145 | if (cmd) | 137 | if (cmd) |
146 | prom_reboot(cmd); | 138 | prom_reboot(cmd); |
147 | if (*reboot_command) | 139 | if (*reboot_command) |
diff --git a/arch/sparc64/kernel/setup.c b/arch/sparc64/kernel/setup.c index 577c823b0529..d036dbe72864 100644 --- a/arch/sparc64/kernel/setup.c +++ b/arch/sparc64/kernel/setup.c | |||
@@ -68,8 +68,6 @@ struct screen_info screen_info = { | |||
68 | 16 /* orig-video-points */ | 68 | 16 /* orig-video-points */ |
69 | }; | 69 | }; |
70 | 70 | ||
71 | void (*prom_palette)(int); | ||
72 | |||
73 | static void | 71 | static void |
74 | prom_console_write(struct console *con, const char *s, unsigned n) | 72 | prom_console_write(struct console *con, const char *s, unsigned n) |
75 | { | 73 | { |
diff --git a/arch/sparc64/kernel/sparc64_ksyms.c b/arch/sparc64/kernel/sparc64_ksyms.c index 68db08930399..51fa773f38c9 100644 --- a/arch/sparc64/kernel/sparc64_ksyms.c +++ b/arch/sparc64/kernel/sparc64_ksyms.c | |||
@@ -85,7 +85,6 @@ extern int (*handle_mathemu)(struct pt_regs *, struct fpustate *); | |||
85 | extern long sparc32_open(const char __user * filename, int flags, int mode); | 85 | extern long sparc32_open(const char __user * filename, int flags, int mode); |
86 | extern int io_remap_pfn_range(struct vm_area_struct *vma, unsigned long from, | 86 | extern int io_remap_pfn_range(struct vm_area_struct *vma, unsigned long from, |
87 | unsigned long pfn, unsigned long size, pgprot_t prot); | 87 | unsigned long pfn, unsigned long size, pgprot_t prot); |
88 | extern void (*prom_palette)(int); | ||
89 | 88 | ||
90 | extern int __ashrdi3(int, int); | 89 | extern int __ashrdi3(int, int); |
91 | 90 | ||
@@ -355,5 +354,3 @@ EXPORT_SYMBOL(xor_niagara_2); | |||
355 | EXPORT_SYMBOL(xor_niagara_3); | 354 | EXPORT_SYMBOL(xor_niagara_3); |
356 | EXPORT_SYMBOL(xor_niagara_4); | 355 | EXPORT_SYMBOL(xor_niagara_4); |
357 | EXPORT_SYMBOL(xor_niagara_5); | 356 | EXPORT_SYMBOL(xor_niagara_5); |
358 | |||
359 | EXPORT_SYMBOL(prom_palette); | ||
diff --git a/arch/sparc64/prom/misc.c b/arch/sparc64/prom/misc.c index bbec7522826c..47a877a15abd 100644 --- a/arch/sparc64/prom/misc.c +++ b/arch/sparc64/prom/misc.c | |||
@@ -55,9 +55,6 @@ void prom_feval(const char *fstring) | |||
55 | P1275_INOUT(1, 1), fstring); | 55 | P1275_INOUT(1, 1), fstring); |
56 | } | 56 | } |
57 | 57 | ||
58 | /* We want to do this more nicely some day. */ | ||
59 | extern void (*prom_palette)(int); | ||
60 | |||
61 | #ifdef CONFIG_SMP | 58 | #ifdef CONFIG_SMP |
62 | extern void smp_capture(void); | 59 | extern void smp_capture(void); |
63 | extern void smp_release(void); | 60 | extern void smp_release(void); |
@@ -72,9 +69,6 @@ void prom_cmdline(void) | |||
72 | 69 | ||
73 | local_irq_save(flags); | 70 | local_irq_save(flags); |
74 | 71 | ||
75 | if (prom_palette) | ||
76 | prom_palette(1); | ||
77 | |||
78 | #ifdef CONFIG_SMP | 72 | #ifdef CONFIG_SMP |
79 | smp_capture(); | 73 | smp_capture(); |
80 | #endif | 74 | #endif |
@@ -85,9 +79,6 @@ void prom_cmdline(void) | |||
85 | smp_release(); | 79 | smp_release(); |
86 | #endif | 80 | #endif |
87 | 81 | ||
88 | if (prom_palette) | ||
89 | prom_palette(0); | ||
90 | |||
91 | local_irq_restore(flags); | 82 | local_irq_restore(flags); |
92 | } | 83 | } |
93 | 84 | ||