devices/e100-2.6.20-ethercat.c
changeset 1236 5007e4913a4c
parent 1230 0f3878668790
child 1240 982eb5bee593
--- a/devices/e100-2.6.20-ethercat.c	Tue Sep 30 14:14:40 2008 +0000
+++ b/devices/e100-2.6.20-ethercat.c	Wed Oct 01 08:40:30 2008 +0000
@@ -2875,7 +2875,7 @@
 	struct nic *nic = netdev_priv(netdev);
 
 	if (nic->ecdev)
-		return;
+		return 0;
 
 	if (netif_running(netdev))
 		netif_poll_disable(nic->netdev);
@@ -2906,7 +2906,7 @@
 	struct nic *nic = netdev_priv(netdev);
 
 	if (nic->ecdev)
-		return;
+		return 0;
 
 	pci_set_power_state(pdev, PCI_D0);
 	pci_restore_state(pdev);