summaryrefslogtreecommitdiff
path: root/drivers/tty/metag_da.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/metag_da.c')
-rw-r--r--drivers/tty/metag_da.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/tty/metag_da.c b/drivers/tty/metag_da.c
index 377460074..932526228 100644
--- a/drivers/tty/metag_da.c
+++ b/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