mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
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>
This commit is contained in:
parent
416187caed
commit
df957d2b9c
1 changed files with 1 additions and 0 deletions
|
@ -859,6 +859,7 @@ error:
|
||||||
*/
|
*/
|
||||||
static void __exit ehv_bc_exit(void)
|
static void __exit ehv_bc_exit(void)
|
||||||
{
|
{
|
||||||
|
platform_driver_unregister(&ehv_bc_tty_driver);
|
||||||
tty_unregister_driver(ehv_bc_driver);
|
tty_unregister_driver(ehv_bc_driver);
|
||||||
put_tty_driver(ehv_bc_driver);
|
put_tty_driver(ehv_bc_driver);
|
||||||
kfree(bcs);
|
kfree(bcs);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue