From: Wei Yongjun Date: Sat, 27 Apr 2013 10:14:56 +0000 (+0800) Subject: TTY: ehv_bytechan: add missing platform_driver_unregister() when module exit X-Git-Tag: v3.10-rc3~22^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df957d2b9c5c8aa12f050f94c9f15236fb0e51f1;p=platform%2Fkernel%2Flinux-3.10.git 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 Signed-off-by: Greg Kroah-Hartman --- 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);