equal
deleted
inserted
replaced
3856 struct net_device *dev = pci_get_drvdata(pdev); |
3856 struct net_device *dev = pci_get_drvdata(pdev); |
3857 struct rtl8169_private *tp = netdev_priv(dev); |
3857 struct rtl8169_private *tp = netdev_priv(dev); |
3858 void __iomem *ioaddr = tp->mmio_addr; |
3858 void __iomem *ioaddr = tp->mmio_addr; |
3859 |
3859 |
3860 if (tp->ecdev) |
3860 if (tp->ecdev) |
3861 return; |
3861 return -EBUSY; |
3862 |
3862 |
3863 if (!netif_running(dev)) |
3863 if (!netif_running(dev)) |
3864 goto out_pci_suspend; |
3864 goto out_pci_suspend; |
3865 |
3865 |
3866 netif_device_detach(dev); |
3866 netif_device_detach(dev); |
3887 { |
3887 { |
3888 struct net_device *dev = pci_get_drvdata(pdev); |
3888 struct net_device *dev = pci_get_drvdata(pdev); |
3889 struct rtl8169_private *tp = netdev_priv(dev); |
3889 struct rtl8169_private *tp = netdev_priv(dev); |
3890 |
3890 |
3891 if (tp->ecdev) |
3891 if (tp->ecdev) |
3892 return; |
3892 return -EBUSY; |
3893 |
3893 |
3894 pci_set_power_state(pdev, PCI_D0); |
3894 pci_set_power_state(pdev, PCI_D0); |
3895 pci_restore_state(pdev); |
3895 pci_restore_state(pdev); |
3896 pci_enable_wake(pdev, PCI_D0, 0); |
3896 pci_enable_wake(pdev, PCI_D0, 0); |
3897 |
3897 |