From: Wei Yongjun Date: Sat, 27 Apr 2013 10:14:29 +0000 (+0800) Subject: serial: samsung: add missing platform_driver_unregister() when module exit X-Git-Tag: MMI-PSA29.97-13-9~14347^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a82ea439655a66d587f353a3992521159f4050ee;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Greg Kroah-Hartman --- 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) static void __exit s3c24xx_serial_modexit(void) { + platform_driver_unregister(&samsung_serial_driver); uart_unregister_driver(&s3c24xx_uart_drv); }