diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-04-27 06:14:56 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-20 15:15:59 -0400 |
commit | df957d2b9c5c8aa12f050f94c9f15236fb0e51f1 (patch) | |
tree | dc4d2721d7c72b5d85cb944c9146867c3dda7c02 | |
parent | 416187caedf1c3b30f9bd1ffe4f4e5596fe65ae6 (diff) |
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>
-rw-r--r-- | drivers/tty/ehv_bytechan.c | 1 |
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: | |||
859 | */ | 859 | */ |
860 | static void __exit ehv_bc_exit(void) | 860 | static void __exit ehv_bc_exit(void) |
861 | { | 861 | { |
862 | platform_driver_unregister(&ehv_bc_tty_driver); | ||
862 | tty_unregister_driver(ehv_bc_driver); | 863 | tty_unregister_driver(ehv_bc_driver); |
863 | put_tty_driver(ehv_bc_driver); | 864 | put_tty_driver(ehv_bc_driver); |
864 | kfree(bcs); | 865 | kfree(bcs); |