/* This deletes a driver "instance". The device is de-registered with Card Services. If it has been released, all local data structures are freed. Otherwise, the structures will be freed when the device is released.  */
static void spectrum_cs_detach(struct pcmcia_device *link)
/* This deletes a driver "instance". The device is de-registered with Card Services. If it has been released, all local data structures are freed. Otherwise, the structures will be freed when the device is released.  */
static void spectrum_cs_detach(struct pcmcia_device *link)
{
	struct orinoco_private *priv = link->priv;
	if (link->dev_node)
		orinoco_if_del(priv);
	spectrum_cs_release(link);
	free_orinocodev(priv);
}