Message ID | 1421070732-24527-1-git-send-email-pramod.gurav@smartplayin.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 01/12/2015 05:52 AM, Pramod Gurav wrote: > 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>
diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c index 8a7af98..58ba602 100644 --- a/drivers/tty/serial/msm_serial.c +++ b/drivers/tty/serial/msm_serial.c @@ -1298,9 +1298,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); }
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> --- drivers/tty/serial/msm_serial.c | 3 --- 1 file changed, 3 deletions(-)