diff options
author | Rob Herring <robh@kernel.org> | 2014-04-30 19:48:28 -0500 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2014-08-29 19:48:36 +0800 |
commit | 4d856c4e9fa9d9ce997e8482c8e878d157462f8c (patch) | |
tree | d6fad3547077e19c5a582d4d3a88f24857183104 | |
parent | 4339696efbbacb554373262f33d1cf5a80804e47 (diff) |
tty/serial: add back missing setup_early_serial8250_console
Commit d2fd6810a823bcd (tty/serial: convert 8250 to generic earlycon)
removed setup_early_serial8250_console, but there are still 2 callers
in:
arch/mips/mti-malta/malta-init.c
drivers/firmware/pcdp.c
Add back the function implemented as a wrapper to setup_earlycon.
Reported-by: Yinghai Lu <yinghai@kernel.org>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: linux-serial@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit fe1cf8af918af3ff0dd58ce92e5a5da117cb1d92)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
(cherry picked from commit bd3132993d81a28b3a165ef6cc1abe0c4a0c6ac6)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
-rw-r--r-- | drivers/tty/serial/8250/8250_early.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/tty/serial/8250/8250_early.c b/drivers/tty/serial/8250/8250_early.c index e83c9db3300c..cfef801a49d4 100644 --- a/drivers/tty/serial/8250/8250_early.c +++ b/drivers/tty/serial/8250/8250_early.c @@ -156,6 +156,16 @@ static int __init early_serial8250_setup(struct earlycon_device *device, EARLYCON_DECLARE(uart8250, early_serial8250_setup); EARLYCON_DECLARE(uart, early_serial8250_setup); +int __init setup_early_serial8250_console(char *cmdline) +{ + char match[] = "uart8250"; + + if (cmdline && cmdline[4] == ',') + match[4] = '\0'; + + return setup_earlycon(cmdline, match, early_serial8250_setup); +} + int serial8250_find_port_for_earlycon(void) { struct earlycon_device *device = early_device; |