branch | stable-1.5 |
changeset 2378 | ca345abf0565 |
parent 2251 | 5023ce75fe91 |
child 2582 | 87e502828b3f |
--- a/devices/r8169-2.6.28-ethercat.c Tue Apr 10 19:09:51 2012 +0200 +++ b/devices/r8169-2.6.28-ethercat.c Tue Apr 10 19:10:56 2012 +0200 @@ -3858,7 +3858,7 @@ void __iomem *ioaddr = tp->mmio_addr; if (tp->ecdev) - return; + return -EBUSY; if (!netif_running(dev)) goto out_pci_suspend; @@ -3889,7 +3889,7 @@ struct rtl8169_private *tp = netdev_priv(dev); if (tp->ecdev) - return; + return -EBUSY; pci_set_power_state(pdev, PCI_D0); pci_restore_state(pdev);