Skip to content

Commit

Permalink
tty: serial: msm_serial: Remove console unregistration from driver exit.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pramod Gurav authored and Greg Kroah-Hartman committed Feb 2, 2015
1 parent 4daba33 commit 2f7f558
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/tty/serial/msm_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2f7f558

Please sign in to comment.