/* 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 netwave_detach(struct pcmcia_device *p_dev)
/* 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 netwave_detach(struct pcmcia_device *p_dev)
{
	struct net_device *dev = link->priv;
	dev_dbg(&link->dev, "netwave_detach\n");
	netwave_release(link);
	if (link->dev_node)
		unregister_netdev(dev);
	free_netdev(dev);
}