author | Florian Pose <fp@igh-essen.com> |
Thu, 15 Apr 2010 23:03:23 +0200 | |
changeset 1899 | 689b41081536 |
parent 1898 | ecfc3f747a3b |
child 1900 | 25f848e2fbf4 |
--- a/devices/r8169-2.6.27-ethercat.c Thu Apr 15 20:53:46 2010 +0200 +++ b/devices/r8169-2.6.27-ethercat.c Thu Apr 15 23:03:23 2010 +0200 @@ -3481,7 +3481,7 @@ void __iomem *ioaddr = tp->mmio_addr; if (tp->ecdev) - return; + return -EBUSY; if (!netif_running(dev)) goto out_pci_suspend; @@ -3512,7 +3512,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);