Commit f2462bfe authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds

Char: cyclades, fix tty device unregister

put_tty_driver after unregistering devices
Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f7429034
......@@ -5285,8 +5285,6 @@ static void __exit cy_cleanup_module(void)
printk(KERN_ERR "failed to unregister Cyclades serial "
"driver(%d)\n", e1);
put_tty_driver(cy_serial_driver);
#ifdef CONFIG_PCI
pci_unregister_driver(&cy_pci_driver);
#endif
......@@ -5310,6 +5308,8 @@ static void __exit cy_cleanup_module(void)
tty_unregister_device(cy_serial_driver, e1);
}
}
put_tty_driver(cy_serial_driver);
} /* cy_cleanup_module */
module_init(cy_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment