/* Device unload callback. Called on an unplug or on module unload for each active device that is present. Disconnects the device from the network layer and frees all the resources  */
static void __devexit velocity_remove1(struct pci_dev *pdev)
/* Device unload callback. Called on an unplug or on module unload for each active device that is present. Disconnects the device from the network layer and frees all the resources  */
static void __devexit velocity_remove1(struct pci_dev *pdev)
{
	struct net_device *dev = pci_get_drvdata(pdev);
	struct velocity_info *vptr = netdev_priv(dev);
	unregister_netdev(dev);
	iounmap(vptr->mac_regs);
	pci_release_regions(pdev);
	pci_disable_device(pdev);
	pci_set_drvdata(pdev, NULL);
	free_netdev(dev);
	velocity_nics--;
}