aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sunsu.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-04-26 20:13:16 -0400
committerDavid S. Miller <davem@davemloft.net>2013-05-04 20:39:48 -0400
commitad348cc5349be4ef4abe08819afbb63386585413 (patch)
treeba9632cfcc9a116f063c7ff7523af22bb30394f8 /drivers/tty/serial/sunsu.c
parent6e4741e73b266f02e4b6d166ac278afd86c4dceb (diff)
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 <yongjun_wei@trendmicro.com.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/tty/serial/sunsu.c')
-rw-r--r--drivers/tty/serial/sunsu.c1
1 files changed, 1 insertions, 0 deletions
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)
1592 1592
1593static void __exit sunsu_exit(void) 1593static void __exit sunsu_exit(void)
1594{ 1594{
1595 platform_driver_unregister(&su_driver);
1595 if (sunsu_reg.nr) 1596 if (sunsu_reg.nr)
1596 sunserial_unregister_minors(&sunsu_reg, sunsu_reg.nr); 1597 sunserial_unregister_minors(&sunsu_reg, sunsu_reg.nr);
1597} 1598}