diff options
| author | Pramod Gurav <pramod.gurav@smartplayin.com> | 2015-01-12 08:52:12 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-02-02 13:11:25 -0500 |
| commit | 2f7f558c222bc0ed617aa9888d0043a9aeeba253 (patch) | |
| tree | 43121de3e6d35559c6c900cd545198fb6f20e3b0 | |
| parent | 4daba33466a81197e65c1a86cc1e1d1ca4e70939 (diff) | |
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: Pramod Gurav <pramod.gurav@smartplayin.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/tty/serial/msm_serial.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c index a0cc6e08552f..b73889c8ed4b 100644 --- a/drivers/tty/serial/msm_serial.c +++ b/drivers/tty/serial/msm_serial.c | |||
| @@ -1126,9 +1126,6 @@ static int __init msm_serial_init(void) | |||
| 1126 | 1126 | ||
| 1127 | static void __exit msm_serial_exit(void) | 1127 | static void __exit msm_serial_exit(void) |
| 1128 | { | 1128 | { |
| 1129 | #ifdef CONFIG_SERIAL_MSM_CONSOLE | ||
| 1130 | unregister_console(&msm_console); | ||
| 1131 | #endif | ||
| 1132 | platform_driver_unregister(&msm_platform_driver); | 1129 | platform_driver_unregister(&msm_platform_driver); |
| 1133 | uart_unregister_driver(&msm_uart_driver); | 1130 | uart_unregister_driver(&msm_uart_driver); |
| 1134 | } | 1131 | } |
