tty: serial: msm_serial: Remove console unregistration from driver exit.
authorPramod Gurav <pramod.gurav@smartplayin.com>
Mon, 12 Jan 2015 13:52:12 +0000 (19:22 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Feb 2015 18:11:25 +0000 (10:11 -0800)
unregister_console() will be called from uart_remove_one_port() while
removing the platform driver. So not necessary to call it in driver
exit path.

Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/msm_serial.c

index a0cc6e08552fa985471464a80e6ca10ee10d3736..b73889c8ed4b91242be90295d225aaa93b0adaa2 100644 (file)
@@ -1126,9 +1126,6 @@ static int __init msm_serial_init(void)
 
 static void __exit msm_serial_exit(void)
 {
-#ifdef CONFIG_SERIAL_MSM_CONSOLE
-       unregister_console(&msm_console);
-#endif
        platform_driver_unregister(&msm_platform_driver);
        uart_unregister_driver(&msm_uart_driver);
 }