]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
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)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 20 Sep 2018 13:23:55 +0000 (15:23 +0200)
commit7a374164380b7c3e18a3ae4742ae595cefbf9a47
tree8b95b9a832b7ec7770eace9315940b10fc59584f
parente0eae6d8e54b959ff36abfe35b1ff015bdf4c19f
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