/* Stop the interface. The interface is stopped when it is brought.  */
static int dm9000_stop(struct net_device *ndev)
/* Stop the interface. The interface is stopped when it is brought.  */
static int dm9000_stop(struct net_device *ndev)
{
	board_info_t *db = netdev_priv(ndev);
	if (netif_msg_ifdown(db))
		dev_dbg(db->dev, "shutting down %s\n", ndev->name);
	cancel_delayed_work_sync(&db->phy_poll);
	netif_stop_queue(ndev);
	netif_carrier_off(ndev);
	free_irq(ndev->irq, ndev);
	dm9000_shutdown(ndev);
	return 0;
}