diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-04-27 06:14:29 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-20 14:54:55 -0400 |
commit | a82ea439655a66d587f353a3992521159f4050ee (patch) | |
tree | c2ea5a322fa1605b58b10a6bd0a49cbecd270814 /drivers/tty/serial/samsung.c | |
parent | f6b6f52b583003ad443d5709c56b8858466c4268 (diff) |
serial: samsung: add missing platform_driver_unregister() when module 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>
Diffstat (limited to 'drivers/tty/serial/samsung.c')
-rw-r--r-- | drivers/tty/serial/samsung.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index 074b9194144f..89429410a245 100644 --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c | |||
@@ -1803,6 +1803,7 @@ static int __init s3c24xx_serial_modinit(void) | |||
1803 | 1803 | ||
1804 | static void __exit s3c24xx_serial_modexit(void) | 1804 | static void __exit s3c24xx_serial_modexit(void) |
1805 | { | 1805 | { |
1806 | platform_driver_unregister(&samsung_serial_driver); | ||
1806 | uart_unregister_driver(&s3c24xx_uart_drv); | 1807 | uart_unregister_driver(&s3c24xx_uart_drv); |
1807 | } | 1808 | } |
1808 | 1809 | ||