X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fisdn%2Fhisax%2Felsa_cs.c;h=0c198804ea0b3865e5ea57f2b1d02b3adf7e7b51;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=f957e5731a79ee8982e7c675698ee42cb9413e2e;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/drivers/isdn/hisax/elsa_cs.c b/drivers/isdn/hisax/elsa_cs.c index f957e5731..0c198804e 100644 --- a/drivers/isdn/hisax/elsa_cs.c +++ b/drivers/isdn/hisax/elsa_cs.c @@ -271,19 +271,6 @@ static void elsa_cs_detach(dev_link_t *link) if (link->state & DEV_CONFIG) elsa_cs_release(link); - /* - If the device is currently configured and active, we won't - actually delete it yet. Instead, it is marked so that when - the release() function is called, that will trigger a proper - detach(). - */ - if (link->state & DEV_CONFIG) { - DEBUG(0, "elsa_cs: detach postponed, '%s' " - "still locked\n", link->dev->dev_name); - link->state |= DEV_STALE_LINK; - return; - } - /* Break the link with Card Services */ if (link->handle) { ret = pcmcia_deregister_client(link->handle); @@ -480,10 +467,6 @@ static void elsa_cs_release(dev_link_t *link) pcmcia_release_io(link->handle, &link->io); pcmcia_release_irq(link->handle, &link->irq); link->state &= ~DEV_CONFIG; - - if (link->state & DEV_STALE_LINK) - elsa_cs_detach(link); - } /* elsa_cs_release */ /*======================================================================