diff options
Diffstat (limited to 'drivers/char/pcmcia/synclink_cs.c')
-rw-r--r-- | drivers/char/pcmcia/synclink_cs.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/char/pcmcia/synclink_cs.c b/drivers/char/pcmcia/synclink_cs.c index e6b714b6390d..371d10b78004 100644 --- a/drivers/char/pcmcia/synclink_cs.c +++ b/drivers/char/pcmcia/synclink_cs.c | |||
@@ -710,15 +710,7 @@ static void mgslpc_release(u_long arg) | |||
710 | if (debug_level >= DEBUG_LEVEL_INFO) | 710 | if (debug_level >= DEBUG_LEVEL_INFO) |
711 | printk("mgslpc_release(0x%p)\n", link); | 711 | printk("mgslpc_release(0x%p)\n", link); |
712 | 712 | ||
713 | /* Unlink the device chain */ | 713 | pcmcia_disable_device(link->handle); |
714 | link->dev = NULL; | ||
715 | link->state &= ~DEV_CONFIG; | ||
716 | |||
717 | pcmcia_release_configuration(link->handle); | ||
718 | if (link->io.NumPorts1) | ||
719 | pcmcia_release_io(link->handle, &link->io); | ||
720 | if (link->irq.AssignedIRQ) | ||
721 | pcmcia_release_irq(link->handle, &link->irq); | ||
722 | } | 714 | } |
723 | 715 | ||
724 | static void mgslpc_detach(struct pcmcia_device *p_dev) | 716 | static void mgslpc_detach(struct pcmcia_device *p_dev) |