diff options
author | Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> | 2018-08-06 14:22:13 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-18 16:07:23 +0200 |
commit | 5f6825d1cef747f6677a833708d698c7df3c1bc8 (patch) | |
tree | 2271c4814bf2a5d272f391ff7c0d86f1be136425 /drivers/tty | |
parent | 415b43bdb00890f5698ceff3d3531d2daa98c5a1 (diff) | |
download | linux-stable-5f6825d1cef747f6677a833708d698c7df3c1bc8.tar.gz linux-stable-5f6825d1cef747f6677a833708d698c7df3c1bc8.tar.bz2 linux-stable-5f6825d1cef747f6677a833708d698c7df3c1bc8.zip |
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 <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/uartlite.c | 8 |
1 files changed, 0 insertions, 8 deletions
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) { /* |