* [PATCH] serial: sunsu: add missing platform_driver_unregister() when module exit
@ 2013-04-27 10:13 Wei Yongjun
2013-05-05 1:32 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2013-04-27 10:13 UTC (permalink / raw)
To: davem, gregkh, jslaby, grant.likely, rob.herring
Cc: yongjun_wei, sparclinux, linux-serial, devicetree-discuss
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
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>
---
no compile test.
---
drivers/tty/serial/sunsu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/tty/serial/sunsu.c b/drivers/tty/serial/sunsu.c
index 451687c..0d84657 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);
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] serial: sunsu: add missing platform_driver_unregister() when module exit
2013-04-27 10:13 [PATCH] serial: sunsu: add missing platform_driver_unregister() when module exit Wei Yongjun
@ 2013-05-05 1:32 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-05-05 1:32 UTC (permalink / raw)
To: weiyj.lk
Cc: gregkh, jslaby, grant.likely, rob.herring, yongjun_wei,
sparclinux, linux-serial, devicetree-discuss
From: Wei Yongjun <weiyj.lk@gmail.com>
Date: Sat, 27 Apr 2013 18:13:16 +0800
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> 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>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-05 1:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-27 10:13 [PATCH] serial: sunsu: add missing platform_driver_unregister() when module exit Wei Yongjun
2013-05-05 1:32 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).