Skip to content

Commit

Permalink
tty/serial: add back missing setup_early_serial8250_console
Browse files Browse the repository at this point in the history
Commit d2fd681 (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>
  • Loading branch information
Rob Herring authored and Greg Kroah-Hartman committed May 3, 2014
1 parent f379a07 commit fe1cf8a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/tty/serial/8250/8250_early.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fe1cf8a

Please sign in to comment.