/* After a card is removed, spectrum_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 spectrum_cs_release(struct pcmcia_device *link)
/* After a card is removed, spectrum_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 spectrum_cs_release(struct pcmcia_device *link)
{
	struct orinoco_private *priv = link->priv;
	unsigned long flags;
	spin_lock_irqsave(&priv->lock, flags);
	priv->hw_unavailable++;
	spin_unlock_irqrestore(&priv->lock, flags);
	pcmcia_disable_device(link);
	if (priv->hw.iobase)
		ioport_unmap(priv->hw.iobase);
}