Skip to content

Commit

Permalink
TTY: ehv_bytechan: add missing platform_driver_unregister() when modu…
Browse files Browse the repository at this point in the history
…le exit

We have registered platform driver when module init, and
need unregister it when module exit.

Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Wei Yongjun authored and gregkh committed May 20, 2013
1 parent 416187c commit df957d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/tty/ehv_bytechan.c
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,7 @@ static int __init ehv_bc_init(void)
*/
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);
Expand Down

0 comments on commit df957d2

Please sign in to comment.