projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e4741e
)
serial: sunsu: add missing platform_driver_unregister() when module exit
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Sat, 27 Apr 2013 00:13:16 +0000
(
00:13
+0000)
committer
David S. Miller
<davem@davemloft.net>
Sun, 5 May 2013 00:39:48 +0000
(17:39 -0700)
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>
drivers/tty/serial/sunsu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/tty/serial/sunsu.c
b/drivers/tty/serial/sunsu.c
index 451687cb96850cd55c1fdd15f4832e591eae8f5d..0d8465728473304ed26a66877536c7cf002f22a4 100644
(file)
--- 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);
}