devices/r8169-2.6.37-ethercat.c
branchstable-1.5
changeset 2378 ca345abf0565
parent 2251 5023ce75fe91
child 2582 87e502828b3f
equal deleted inserted replaced
2377:aa0f6f939cb3 2378:ca345abf0565
  4954 {
  4954 {
  4955 	struct pci_dev *pdev = to_pci_dev(device);
  4955 	struct pci_dev *pdev = to_pci_dev(device);
  4956 	struct net_device *dev = pci_get_drvdata(pdev);
  4956 	struct net_device *dev = pci_get_drvdata(pdev);
  4957 	struct rtl8169_private *tp = netdev_priv(dev);
  4957 	struct rtl8169_private *tp = netdev_priv(dev);
  4958 
  4958 
       
  4959 	if (tp->ecdev)
       
  4960 		return -EBUSY;
       
  4961 
  4959 	rtl8169_init_phy(dev, tp);
  4962 	rtl8169_init_phy(dev, tp);
  4960 
  4963 
  4961 	if (netif_running(dev))
  4964 	if (netif_running(dev))
  4962 		__rtl8169_resume(dev);
  4965 		__rtl8169_resume(dev);
  4963 
  4966