These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / tty / metag_da.c
index 3774600..9325262 100644 (file)
@@ -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