summaryrefslogtreecommitdiffstats
path: root/drivers/tty/ehv_bytechan.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-04-27 18:14:56 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-20 12:15:59 -0700
commitdf957d2b9c5c8aa12f050f94c9f15236fb0e51f1 (patch)
treedc4d2721d7c72b5d85cb944c9146867c3dda7c02 /drivers/tty/ehv_bytechan.c
parent416187caedf1c3b30f9bd1ffe4f4e5596fe65ae6 (diff)
downloadblackbird-op-linux-df957d2b9c5c8aa12f050f94c9f15236fb0e51f1.tar.gz
blackbird-op-linux-df957d2b9c5c8aa12f050f94c9f15236fb0e51f1.zip
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/ehv_bytechan.c')
-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 6d0c27cd03da..9bffcec5ad82 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);
OpenPOWER on IntegriCloud