serial: uartps: Remove console_initcall from the driver
authorMichal Simek <michal.simek@xilinx.com>
Mon, 23 Apr 2018 09:51:00 +0000 (11:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2018 12:58:44 +0000 (14:58 +0200)
commit0f38c5e3e0ade98b49e2c7ca5550ee9e36cbc04f
tree1622b391f955e11efef6849eb295991550bd9f1c
parente76785d092ab8356d24996754f0ff1917021fcb6
serial: uartps: Remove console_initcall from the driver

register_console() is called from
uart_add_one_port()->uart_configure_port()
that's why register_console() is called twice.

This patch remove console_initcall to call register_console() only from
one location.

Also based on my tests cdns_uart_console_setup() is not called
from the first register_console() call.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c