/* Registered in the pci_driver structure, this function is called when the PCI subsystem detects that a PCI device which matches the information contained in the pci_device_id table has been removed.  */
static void __devexit et131x_pci_remove(struct pci_dev *pdev)
/* Registered in the pci_driver structure, this function is called when the PCI subsystem detects that a PCI device which matches the information contained in the pci_device_id table has been removed.  */
static void __devexit et131x_pci_remove(struct pci_dev *pdev)
{
	struct net_device *netdev;
	struct et131x_adapter *adapter;
	netdev = (struct net_device *) pci_get_drvdata(pdev);
	adapter = netdev_priv(netdev);
	unregister_netdev(netdev);
	et131x_adapter_memory_free(adapter);
	iounmap(adapter->regs);
	pci_dev_put(adapter->pdev);
	free_netdev(netdev);
	pci_release_regions(pdev);
	pci_disable_device(pdev);
}