diff options
Diffstat (limited to 'drivers/char/hvc_console.c')
-rw-r--r-- | drivers/char/hvc_console.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/char/hvc_console.c b/drivers/char/hvc_console.c index e7362c195b11..0f9d356d3bd9 100644 --- a/drivers/char/hvc_console.c +++ b/drivers/char/hvc_console.c | |||
@@ -846,8 +846,9 @@ int __init hvc_init(void) | |||
846 | } | 846 | } |
847 | module_init(hvc_init); | 847 | module_init(hvc_init); |
848 | 848 | ||
849 | /* This isn't particularily necessary due to this being a console driver but it | 849 | /* This isn't particularily necessary due to this being a console driver |
850 | * is nice to be thorough */ | 850 | * but it is nice to be thorough. |
851 | */ | ||
851 | static void __exit hvc_exit(void) | 852 | static void __exit hvc_exit(void) |
852 | { | 853 | { |
853 | kthread_stop(hvc_task); | 854 | kthread_stop(hvc_task); |
@@ -856,5 +857,6 @@ static void __exit hvc_exit(void) | |||
856 | tty_unregister_driver(hvc_driver); | 857 | tty_unregister_driver(hvc_driver); |
857 | /* return tty_struct instances allocated in hvc_init(). */ | 858 | /* return tty_struct instances allocated in hvc_init(). */ |
858 | put_tty_driver(hvc_driver); | 859 | put_tty_driver(hvc_driver); |
860 | unregister_console(&hvc_con_driver); | ||
859 | } | 861 | } |
860 | module_exit(hvc_exit); | 862 | module_exit(hvc_exit); |