[MIPS] Fix and cleanup the mess that a dozen prom_printf variants are.
early_printk is a so much saner thing. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
@@ -19,29 +19,3 @@ static void putchar(int c)
|
||||
|
||||
COBALT_UART[UART_TX] = c;
|
||||
}
|
||||
|
||||
static void cons_write(struct console *c, const char *s, unsigned n)
|
||||
{
|
||||
while(n-- && *s)
|
||||
putchar(*s++);
|
||||
}
|
||||
|
||||
static struct console cons_info =
|
||||
{
|
||||
.name = "uart",
|
||||
.write = cons_write,
|
||||
.flags = CON_PRINTBUFFER | CON_BOOT,
|
||||
.index = -1,
|
||||
};
|
||||
|
||||
void __init cobalt_early_console(void)
|
||||
{
|
||||
register_console(&cons_info);
|
||||
|
||||
printk("Cobalt: early console registered\n");
|
||||
}
|
||||
|
||||
void __init disable_early_printk(void)
|
||||
{
|
||||
unregister_console(&cons_info);
|
||||
}
|
||||
|
@@ -150,10 +150,6 @@ void __init plat_mem_setup(void)
|
||||
#endif
|
||||
|
||||
if (cobalt_board_id > COBALT_BRD_ID_RAQ1) {
|
||||
#ifdef CONFIG_EARLY_PRINTK
|
||||
cobalt_early_console();
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SERIAL_8250
|
||||
uart.line = 0;
|
||||
uart.type = PORT_UNKNOWN;
|
||||
|
Reference in New Issue
Block a user