pch_uart: Use existing default_baud in setup_console
authorDarren Hart <dvhart@linux.intel.com>
Fri, 9 Mar 2012 17:51:51 +0000 (09:51 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2012 20:43:20 +0000 (12:43 -0800)
Rather than hardcode 9600, use the existing default_baud parameter (which
also defaults to 9600).

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Tomoya MORINAGA <tomoya.rohm@gmail.com>
CC: Feng Tang <feng.tang@intel.com>
CC: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pch_uart.c

index 46f6fbf41d915d15c15c1aed9308e0948fe9cdf6..cca742b018008a9333e9d112b66bea2ead3a9252 100644 (file)
@@ -1566,7 +1566,7 @@ pch_console_write(struct console *co, const char *s, unsigned int count)
 static int __init pch_console_setup(struct console *co, char *options)
 {
        struct uart_port *port;
-       int baud = 9600;
+       int baud = default_baud;
        int bits = 8;
        int parity = 'n';
        int flow = 'n';