/* After a card is removed, if_cs_release() will unregister the device, and release the PCMCIA configuration. If the device is still open, this will be postponed until it is closed.  */
static void if_cs_release(struct pcmcia_device *p_dev)
/* After a card is removed, if_cs_release() will unregister the device, and release the PCMCIA configuration. If the device is still open, this will be postponed until it is closed.  */
static void if_cs_release(struct pcmcia_device *p_dev)
{
	struct if_cs_card *card = p_dev->priv;
	lbs_deb_enter(LBS_DEB_CS);
	free_irq(p_dev->irq.AssignedIRQ, card);
	pcmcia_disable_device(p_dev);
	if (card->iobase)
		ioport_unmap(card->iobase);
	lbs_deb_leave(LBS_DEB_CS);
}