Commit 2f7f558c authored by Pramod Gurav's avatar Pramod Gurav Committed by Greg Kroah-Hartman

tty: serial: msm_serial: Remove console unregistration from driver exit.

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: default avatarPramod Gurav <pramod.gurav@smartplayin.com>
Reviewed-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4daba334
...@@ -1126,9 +1126,6 @@ static int __init msm_serial_init(void) ...@@ -1126,9 +1126,6 @@ static int __init msm_serial_init(void)
static void __exit msm_serial_exit(void) static void __exit msm_serial_exit(void)
{ {
#ifdef CONFIG_SERIAL_MSM_CONSOLE
unregister_console(&msm_console);
#endif
platform_driver_unregister(&msm_platform_driver); platform_driver_unregister(&msm_platform_driver);
uart_unregister_driver(&msm_uart_driver); uart_unregister_driver(&msm_uart_driver);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment