From 5f6825d1cef747f6677a833708d698c7df3c1bc8 Mon Sep 17 00:00:00 2001 From: Shubhrajyoti Datta Date: Mon, 6 Aug 2018 14:22:13 +0530 Subject: tty: serial: uartlite: remove console_init register_console is called twice once from uart_add_one_port -> uart_configure_port remove the double call Signed-off-by: Shubhrajyoti Datta Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/uartlite.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'drivers/tty/serial/uartlite.c') diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c index 77da5652fc60..f8538e2d6c9c 100644 --- a/drivers/tty/serial/uartlite.c +++ b/drivers/tty/serial/uartlite.c @@ -541,14 +541,6 @@ static struct console ulite_console = { .data = &ulite_uart_driver, }; -static int __init ulite_console_init(void) -{ - register_console(&ulite_console); - return 0; -} - -console_initcall(ulite_console_init); - static void early_uartlite_putc(struct uart_port *port, int c) { /* -- cgit v1.2.3-58-ga151