提交 df957d2b 编写于 作者: W Wei Yongjun 提交者: Greg Kroah-Hartman

TTY: ehv_bytechan: 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: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 416187ca
...@@ -859,6 +859,7 @@ static int __init ehv_bc_init(void) ...@@ -859,6 +859,7 @@ static int __init ehv_bc_init(void)
*/ */
static void __exit ehv_bc_exit(void) static void __exit ehv_bc_exit(void)
{ {
platform_driver_unregister(&ehv_bc_tty_driver);
tty_unregister_driver(ehv_bc_driver); tty_unregister_driver(ehv_bc_driver);
put_tty_driver(ehv_bc_driver); put_tty_driver(ehv_bc_driver);
kfree(bcs); kfree(bcs);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册