#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>
        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) {
 
 #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"
 
        }
 
        add_preferred_console("uart", 8250, &options[9]);
-       return setup_early_serial8250_console(options);
+       return setup_earlycon(options);
 #else
        return -ENODEV;
 #endif
 
 }
 EARLYCON_DECLARE(uart8250, early_serial8250_setup);
 EARLYCON_DECLARE(uart, early_serial8250_setup);
-
-int __init setup_early_serial8250_console(char *cmdline)
-{
-       return setup_earlycon(cmdline);
-}
 
 
 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);