It results in serial console getting initialised really late and the
suggested workaround is broken according to Keith.
Cset exclude: akpm@osdl.org|ChangeSet|
20040213234712|28554
if (co->index >= UART_NR)
co->index = 0;
port = &serial8250_ports[co->index].port;
- if (port->type == PORT_UNKNOWN)
- return -ENODEV;
/*
* Temporary fix.
}
console_initcall(serial8250_console_init);
-static int __init serial8250_late_console_init(void)
-{
- if (!(serial8250_console.flags & CON_ENABLED))
- register_console(&serial8250_console);
- return 0;
-}
-late_initcall(serial8250_late_console_init);
-
#define SERIAL8250_CONSOLE &serial8250_console
#else
#define SERIAL8250_CONSOLE NULL
if (flow == 'r')
termios.c_cflag |= CRTSCTS;
+ if (!port->ops)
+ return 0; /* "console=" on ia64 */
+
port->ops->set_termios(port, &termios, NULL);
co->cflag = termios.c_cflag;