[yocto] [PATCH 11/11] pch_uart: Use existing default_baud in setup_console

Darren Hart dvhart at linux.intel.com
Thu Mar 1 15:58:52 PST 2012


Rather than hardcode 9600, use the existing default_baud parameter (which
also defaults to 9600).

Signed-off-by: Darren Hart <dvhart at linux.intel.com>
CC: Tomoya MORINAGA <tomoya.rohm at gmail.com>
CC: Feng Tang <feng.tang at intel.com>
CC: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
CC: Alan Cox <alan at linux.intel.com>
CC: linux-serial at vger.kernel.org
---
 drivers/tty/serial/pch_uart.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c
index 2233e31..4be4c90 100644
--- a/drivers/tty/serial/pch_uart.c
+++ b/drivers/tty/serial/pch_uart.c
@@ -1516,7 +1516,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';
-- 
1.7.6.5




More information about the yocto mailing list