]> git.hungrycats.org Git - linux/commitdiff
Revert the dodgy ia64 serial console changeset by Bjorn Helgaas.
authorLinus Torvalds <torvalds@home.osdl.org>
Mon, 16 Feb 2004 08:20:24 +0000 (00:20 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 16 Feb 2004 08:20:24 +0000 (00:20 -0800)
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

drivers/serial/8250.c
drivers/serial/serial_core.c

index 904242a8a67bd26fa5e501b308f63eaba7c4cd00..e1cf834f0f6fb988fea3e7faff476fb83c50698d 100644 (file)
@@ -1976,8 +1976,6 @@ static int __init serial8250_console_setup(struct console *co, char *options)
        if (co->index >= UART_NR)
                co->index = 0;
        port = &serial8250_ports[co->index].port;
-       if (port->type == PORT_UNKNOWN)
-               return -ENODEV;
 
        /*
         * Temporary fix.
@@ -2009,14 +2007,6 @@ static int __init serial8250_console_init(void)
 }
 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
index 94fe0f66224f0e79a235f586e9423bdaf5420ee3..a78f0521e4c33aaeec3e5012efabf607da849bad 100644 (file)
@@ -1871,6 +1871,9 @@ uart_set_options(struct uart_port *port, struct console *co,
        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;