serial: 8250_early: Remove setup_early_serial8250_console()
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 9 Mar 2015 20:27:22 +0000 (16:27 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 16:25:27 +0000 (17:25 +0100)
setup_earlycon() will now match and register the desired earlycon
from the param string (as if 'earlycon=...' had been set on the
command line). Use setup_earlycon() from existing arch call sites
which start an earlycon directly.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/mti-malta/malta-init.c
drivers/firmware/pcdp.c
drivers/tty/serial/8250/8250_early.c
include/linux/serial_8250.h

index 6849f533154f7cf67e4b07e272b002a166e234cd..cec3e187c48f4dcf6e176e14c7e85be1d1234b35 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/init.h>
 #include <linux/string.h>
 #include <linux/kernel.h>
-#include <linux/serial_8250.h>
+#include <linux/serial_core.h>
 
 #include <asm/cacheflush.h>
 #include <asm/smp-ops.h>
@@ -75,7 +75,7 @@ static void __init console_config(void)
        if ((strstr(fw_getcmdline(), "earlycon=")) == NULL) {
                sprintf(console_string, "uart8250,io,0x3f8,%d%c%c", baud,
                        parity, bits);
-               setup_early_serial8250_console(console_string);
+               setup_earlycon(console_string);
        }
 
        if ((strstr(fw_getcmdline(), "console=")) == NULL) {
index a330492e06f9597e9d8abcf82561b248bee1753c..75273a2516039116da1d706d5f44565cadc2b41a 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/console.h>
 #include <linux/efi.h>
 #include <linux/serial.h>
-#include <linux/serial_8250.h>
+#include <linux/serial_core.h>
 #include <asm/vga.h>
 #include "pcdp.h"
 
@@ -43,7 +43,7 @@ setup_serial_console(struct pcdp_uart *uart)
        }
 
        add_preferred_console("uart", 8250, &options[9]);
-       return setup_early_serial8250_console(options);
+       return setup_earlycon(options);
 #else
        return -ENODEV;
 #endif
index d272139a57291d42fa606496ff582ae8d765ba8f..a2b4e58690ba4b6e1c4e785def502741143b21f0 100644 (file)
@@ -167,8 +167,3 @@ 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)
-{
-       return setup_earlycon(cmdline);
-}
index f26ae7fa30ae5cc84a13a3967cc4224071b8f334..ca9f87beac63e8d64161793e42f6ff4d04b1f881 100644 (file)
@@ -120,7 +120,6 @@ extern int early_serial_setup(struct uart_port *port);
 
 extern unsigned int serial8250_early_in(struct uart_port *port, int offset);
 extern void serial8250_early_out(struct uart_port *port, int offset, int value);
-extern int setup_early_serial8250_console(char *cmdline);
 extern void serial8250_do_set_termios(struct uart_port *port,
                struct ktermios *termios, struct ktermios *old);
 extern int serial8250_do_startup(struct uart_port *port);