tty: serial: 8250: add CON_CONSDEV to flags
authorMatthew Leach <matthew.leach@codethink.co.uk>
Tue, 21 Jun 2016 15:19:49 +0000 (16:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2016 21:05:13 +0000 (14:05 -0700)
commitd03516df837587368fc6e75591f6329c072b9eb5
treef55753ff800b9b6bf8d6e7fff7605770221ed711
parentbbb5ff91225dfbf3e5c27619552e41661048ed61
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>
drivers/tty/serial/8250/8250_core.c