Skip to content

Commit

Permalink
serial: samsung: add missing platform_driver_unregister() when module…
Browse files Browse the repository at this point in the history
… exit

We have registered platform driver when module init, and
need unregister it when module exit.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Wei Yongjun authored and Greg Kroah-Hartman committed May 20, 2013
1 parent f6b6f52 commit a82ea43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/tty/serial/samsung.c
Original file line number Diff line number Diff line change
Expand Up @@ -1803,6 +1803,7 @@ static int __init s3c24xx_serial_modinit(void)

static void __exit s3c24xx_serial_modexit(void)
{
platform_driver_unregister(&samsung_serial_driver);
uart_unregister_driver(&s3c24xx_uart_drv);
}

Expand Down

0 comments on commit a82ea43

Please sign in to comment.