From: Wei Yongjun Date: Sat, 27 Apr 2013 00:13:16 +0000 (+0000) Subject: serial: sunsu: add missing platform_driver_unregister() when module exit X-Git-Tag: MMI-PSA29.97-13-9~14498^2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ad348cc5349be4ef4abe08819afbb63386585413;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git serial: sunsu: 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: David S. Miller --- diff --git a/drivers/tty/serial/sunsu.c b/drivers/tty/serial/sunsu.c index 451687cb9685..0d8465728473 100644 --- a/drivers/tty/serial/sunsu.c +++ b/drivers/tty/serial/sunsu.c @@ -1592,6 +1592,7 @@ static int __init sunsu_init(void) static void __exit sunsu_exit(void) { + platform_driver_unregister(&su_driver); if (sunsu_reg.nr) sunserial_unregister_minors(&sunsu_reg, sunsu_reg.nr); }