[PATCH] TTY: ehv_bytechan: add missing platform_driver_unregister() when module exit
Wei Yongjun
weiyj.lk at gmail.com
Sat Apr 27 20:14:56 EST 2013
From: Wei Yongjun <yongjun_wei at 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 at trendmicro.com.cn>
---
no compile test.
---
drivers/tty/ehv_bytechan.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/tty/ehv_bytechan.c b/drivers/tty/ehv_bytechan.c
index 6d0c27c..9bffcec 100644
--- a/drivers/tty/ehv_bytechan.c
+++ b/drivers/tty/ehv_bytechan.c
@@ -859,6 +859,7 @@ error:
*/
static void __exit ehv_bc_exit(void)
{
+ platform_driver_unregister(&ehv_bc_tty_driver);
tty_unregister_driver(ehv_bc_driver);
put_tty_driver(ehv_bc_driver);
kfree(bcs);
More information about the devicetree-discuss
mailing list