[SPARC]: Kill 'prom_palette'.

The idea of this thing is we could save/restore the firmware's
palette when breaking in and out of the firmware prompt.

Only one driver implemented this (atyfb) and it's value is
questionable. If you're just debugging you don't really
care that the characters end up being purple or whatever.

And we can provide better debugging and firmware command
facilities with minimal in-kernel console I/O drivers.

Signed-off-by: David S. Miller <davem@davemloft.net>

-38
-6
arch/sparc/kernel/process.c
··· 141 141 142 142 extern char reboot_command []; 143 143 144 - extern void (*prom_palette)(int); 145 - 146 144 /* XXX cli/sti -> local_irq_xxx here, check this works once SMP is fixed. */ 147 145 void machine_halt(void) 148 146 { 149 147 local_irq_enable(); 150 148 mdelay(8); 151 149 local_irq_disable(); 152 - if (prom_palette) 153 - prom_palette (1); 154 150 prom_halt(); 155 151 panic("Halt failed!"); 156 152 } ··· 161 165 162 166 p = strchr (reboot_command, '\n'); 163 167 if (p) *p = 0; 164 - if (prom_palette) 165 - prom_palette (1); 166 168 if (cmd) 167 169 prom_reboot(cmd); 168 170 if (*reboot_command)
-3
arch/sparc/kernel/setup.c
··· 65 65 */ 66 66 67 67 extern unsigned long trapbase; 68 - void (*prom_palette)(int); 69 68 70 69 /* Pretty sick eh? */ 71 70 void prom_sync_me(void) ··· 79 80 "nop\n\t" 80 81 "nop\n\t" : : "r" (&trapbase)); 81 82 82 - if (prom_palette) 83 - prom_palette(1); 84 83 prom_printf("PROM SYNC COMMAND...\n"); 85 84 show_free_areas(); 86 85 if(current->pid != 0) {
-7
arch/sparc/prom/misc.c
··· 45 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 48 /* Drop into the prom, with the chance to continue with the 'go' 52 49 * prom command. 53 50 */ ··· 55 58 extern void install_linux_ticker(void); 56 59 unsigned long flags; 57 60 58 - if (prom_palette) 59 - prom_palette (1); 60 61 spin_lock_irqsave(&prom_lock, flags); 61 62 install_obp_ticker(); 62 63 (*(romvec->pv_abort))(); ··· 64 69 #ifdef CONFIG_SUN_AUXIO 65 70 set_auxio(AUXIO_LED, 0); 66 71 #endif 67 - if (prom_palette) 68 - prom_palette (0); 69 72 } 70 73 71 74 /* Drop into the prom, but completely terminate the program.
-8
arch/sparc64/kernel/process.c
··· 113 113 114 114 extern char reboot_command []; 115 115 116 - extern void (*prom_palette)(int); 117 - 118 116 void machine_halt(void) 119 117 { 120 118 sstate_halt(); 121 - if (prom_palette) 122 - prom_palette (1); 123 119 prom_halt(); 124 120 panic("Halt failed!"); 125 121 } ··· 123 127 void machine_alt_power_off(void) 124 128 { 125 129 sstate_poweroff(); 126 - if (prom_palette) 127 - prom_palette(1); 128 130 prom_halt_power_off(); 129 131 panic("Power-off failed!"); 130 132 } ··· 134 140 sstate_reboot(); 135 141 p = strchr (reboot_command, '\n'); 136 142 if (p) *p = 0; 137 - if (prom_palette) 138 - prom_palette (1); 139 143 if (cmd) 140 144 prom_reboot(cmd); 141 145 if (*reboot_command)
-2
arch/sparc64/kernel/setup.c
··· 68 68 16 /* orig-video-points */ 69 69 }; 70 70 71 - void (*prom_palette)(int); 72 - 73 71 static void 74 72 prom_console_write(struct console *con, const char *s, unsigned n) 75 73 {
-3
arch/sparc64/kernel/sparc64_ksyms.c
··· 85 85 extern long sparc32_open(const char __user * filename, int flags, int mode); 86 86 extern int io_remap_pfn_range(struct vm_area_struct *vma, unsigned long from, 87 87 unsigned long pfn, unsigned long size, pgprot_t prot); 88 - extern void (*prom_palette)(int); 89 88 90 89 extern int __ashrdi3(int, int); 91 90 ··· 354 355 EXPORT_SYMBOL(xor_niagara_3); 355 356 EXPORT_SYMBOL(xor_niagara_4); 356 357 EXPORT_SYMBOL(xor_niagara_5); 357 - 358 - EXPORT_SYMBOL(prom_palette);
-9
arch/sparc64/prom/misc.c
··· 55 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 58 #ifdef CONFIG_SMP 62 59 extern void smp_capture(void); 63 60 extern void smp_release(void); ··· 69 72 70 73 local_irq_save(flags); 71 74 72 - if (prom_palette) 73 - prom_palette(1); 74 - 75 75 #ifdef CONFIG_SMP 76 76 smp_capture(); 77 77 #endif ··· 78 84 #ifdef CONFIG_SMP 79 85 smp_release(); 80 86 #endif 81 - 82 - if (prom_palette) 83 - prom_palette(0); 84 87 85 88 local_irq_restore(flags); 86 89 }