Browse Source

tty: serial: 8250: add CON_CONSDEV to flags

When using the 8250 as a boot console and the main console results in
messages being printed twice.  The console framework will only
unregister boot consoles if a new console is registered with the
CON_CONSDEV flag set.

Set this flag for the univ8250 console to prevent double-registration.

Signed-off-by: Matthew Leach <matthew.leach@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Matthew Leach 9 years ago
parent
commit
d03516df83
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/tty/serial/8250/8250_core.c

+ 1 - 1
drivers/tty/serial/8250/8250_core.c

@@ -675,7 +675,7 @@ static struct console univ8250_console = {
 	.device		= uart_console_device,
 	.device		= uart_console_device,
 	.setup		= univ8250_console_setup,
 	.setup		= univ8250_console_setup,
 	.match		= univ8250_console_match,
 	.match		= univ8250_console_match,
-	.flags		= CON_PRINTBUFFER | CON_ANYTIME,
+	.flags		= CON_PRINTBUFFER | CON_ANYTIME | CON_CONSDEV,
 	.index		= -1,
 	.index		= -1,
 	.data		= &serial8250_reg,
 	.data		= &serial8250_reg,
 };
 };