kernels/linux-2.4.0/drivers/isdn/avmb1/avm_cs.c
/*======================================================================

    After a card is removed, avmcs_release() will unregister the net
    device, and release the PCMCIA configuration.  If the device is
    still open, this will be postponed until it is closed.
    
======================================================================*/
After a card is removed, avmcs_release() will unregister the net
device, and release the PCMCIA configuration.  If the device is
still open, this will be postponed until it is closed.
After a card is removed avmcs_release () will unregister the net device and release the PCMCIA configuration . If the device is still open this will be postponed until it is closed .
static void avmcs_release(u_long arg)
{
    dev_link_t *link = (dev_link_t *)arg;
    if (link->open) {
	link->state |= DEV_STALE_CONFIG;
	return;
    }
    b1pcmcia_delcard(link->io.BasePort1, link->irq.AssignedIRQ);
    link->dev = NULL;
    CardServices(ReleaseConfiguration, link->handle);
    CardServices(ReleaseIO, link->handle, &link->io);
    CardServices(ReleaseIRQ, link->handle, &link->irq);
    link->state &= ~DEV_CONFIG;
    if (link->state & DEV_STALE_LINK)
	avmcs_detach(link);
}
static void avmcs_release ( u_long arg ) { dev_link_t * link = ( dev_link_t * ) arg ; if ( link -> open ) { link -> state |= DEV_STALE_CONFIG ; return ; } b1pcmcia_delcard ( link -> io . BasePort1 , link -> irq . AssignedIRQ ) ; link -> dev = NULL ; CardServices ( ReleaseConfiguration , link -> handle ) ; CardServices ( ReleaseIO , link -> handle , & link -> io ) ; CardServices ( ReleaseIRQ , link -> handle , & link -> irq ) ; link -> state &= ~ DEV_CONFIG ; if ( link -> state & DEV_STALE_LINK ) avmcs_detach ( link ) ; }
After a card is removed, avmcs_release() will unregister the net
device, and release the PCMCIA configuration.
After a card is removed avmcs_release () will unregister the net device and release the PCMCIA configuration .
/*
       If the device is currently in use, we won't release until it
       is actually closed.
    */ /* Unlink the device chain */ /* Don't bother checking to see if these succeed or not */