/* * Function netwave_detach (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 netwave_detach(struct pcmcia_device *link) { 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); } /* netwave_detach */
/* * Function netwave_detach (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 netwave_detach(struct pcmcia_device *link) { struct net_device *dev = link->priv; DEBUG(0, "netwave_detach(0x%p)\n", link); netwave_release(link); if (link->dev_node) unregister_netdev(dev); free_netdev(dev); } /* netwave_detach */