tty: xilinx_uartps: move to arch_initcall for earlier console
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Wed, 20 Sep 2017 06:50:11 +0000 (12:20 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Oct 2017 08:15:47 +0000 (10:15 +0200)
move to arch_initcall to get the console up really early, it is
quite helpful for spotting early boot problems.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c

index 31a630ae0870efec120ec63cdb15464dc947682a..7c1c6fb96ea0f92ed9816c595d9cd43784b386d4 100644 (file)
@@ -1673,7 +1673,7 @@ static void __exit cdns_uart_exit(void)
        uart_unregister_driver(&cdns_uart_uart_driver);
 }
 
-module_init(cdns_uart_init);
+arch_initcall(cdns_uart_init);
 module_exit(cdns_uart_exit);
 
 MODULE_DESCRIPTION("Driver for Cadence UART");