diff options
Diffstat (limited to 'kernel/drivers/tty/metag_da.c')
-rw-r--r-- | kernel/drivers/tty/metag_da.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/kernel/drivers/tty/metag_da.c b/kernel/drivers/tty/metag_da.c index 377460074..932526228 100644 --- a/kernel/drivers/tty/metag_da.c +++ b/kernel/drivers/tty/metag_da.c @@ -640,25 +640,7 @@ err_destroy_ports: put_tty_driver(channel_driver); return ret; } - -static void dashtty_exit(void) -{ - int nport; - struct dashtty_port *dport; - - del_timer_sync(&put_timer); - kthread_stop(dashtty_thread); - del_timer_sync(&poll_timer); - tty_unregister_driver(channel_driver); - for (nport = 0; nport < NUM_TTY_CHANNELS; nport++) { - dport = &dashtty_ports[nport]; - tty_port_destroy(&dport->port); - } - put_tty_driver(channel_driver); -} - -module_init(dashtty_init); -module_exit(dashtty_exit); +device_initcall(dashtty_init); #ifdef CONFIG_DA_CONSOLE |