summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-04-27 10:14:56 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-20 19:15:59 (GMT)
commitdf957d2b9c5c8aa12f050f94c9f15236fb0e51f1 (patch)
treedc4d2721d7c72b5d85cb944c9146867c3dda7c02 /drivers/tty
parent416187caedf1c3b30f9bd1ffe4f4e5596fe65ae6 (diff)
downloadlinux-df957d2b9c5c8aa12f050f94c9f15236fb0e51f1.tar.xz
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: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/ehv_bytechan.c1
1 files changed, 1 insertions, 0 deletions
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);