aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/uartlite.c
diff options
context:
space:
mode:
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>2018-08-06 14:22:13 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-18 16:07:23 +0200
commit5f6825d1cef747f6677a833708d698c7df3c1bc8 (patch)
tree2271c4814bf2a5d272f391ff7c0d86f1be136425 /drivers/tty/serial/uartlite.c
parenttty: serial: uartlite: Move uart register to probe (diff)
downloadlinux-dev-5f6825d1cef747f6677a833708d698c7df3c1bc8.tar.xz
linux-dev-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 '')
-rw-r--r--drivers/tty/serial/uartlite.c8
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)
{
/*