/* Returns 0 on success, errno on failure (as defined in errno.h)  */
int et131x_close(struct net_device *netdev)
/* Returns 0 on success, errno on failure (as defined in errno.h)  */
int et131x_close(struct net_device *netdev)
{
	struct et131x_adapter *adapter = netdev_priv(netdev);
	netif_stop_queue(netdev);
	et131x_rx_dma_disable(adapter);
	et131x_tx_dma_disable(adapter);
	et131x_disable_interrupts(adapter);
	adapter->Flags &= ~fMP_ADAPTER_INTERRUPT_IN_USE;
	free_irq(netdev->irq, netdev);
	del_timer_sync(&adapter->ErrorTimer);
	return 0;
}