diff options
Diffstat (limited to 'drivers/char/cyclades.c')
-rw-r--r-- | drivers/char/cyclades.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c index e559ce9e7147..c6a12bad70f5 100644 --- a/drivers/char/cyclades.c +++ b/drivers/char/cyclades.c | |||
@@ -5285,8 +5285,6 @@ static void __exit cy_cleanup_module(void) | |||
5285 | printk(KERN_ERR "failed to unregister Cyclades serial " | 5285 | printk(KERN_ERR "failed to unregister Cyclades serial " |
5286 | "driver(%d)\n", e1); | 5286 | "driver(%d)\n", e1); |
5287 | 5287 | ||
5288 | put_tty_driver(cy_serial_driver); | ||
5289 | |||
5290 | #ifdef CONFIG_PCI | 5288 | #ifdef CONFIG_PCI |
5291 | pci_unregister_driver(&cy_pci_driver); | 5289 | pci_unregister_driver(&cy_pci_driver); |
5292 | #endif | 5290 | #endif |
@@ -5310,6 +5308,8 @@ static void __exit cy_cleanup_module(void) | |||
5310 | tty_unregister_device(cy_serial_driver, e1); | 5308 | tty_unregister_device(cy_serial_driver, e1); |
5311 | } | 5309 | } |
5312 | } | 5310 | } |
5311 | |||
5312 | put_tty_driver(cy_serial_driver); | ||
5313 | } /* cy_cleanup_module */ | 5313 | } /* cy_cleanup_module */ |
5314 | 5314 | ||
5315 | module_init(cy_init); | 5315 | module_init(cy_init); |