devices/r8169-2.6.28-ethercat.c
changeset 2589 2b9c78543663
parent 2254 fe87d02a6790
equal deleted inserted replaced
2415:af21f0bdc7c9 2589:2b9c78543663
  2174 		       dev->dev_addr[4], dev->dev_addr[5], xid, dev->irq);
  2174 		       dev->dev_addr[4], dev->dev_addr[5], xid, dev->irq);
  2175 	}
  2175 	}
  2176 
  2176 
  2177 	rtl8169_init_phy(dev, tp);
  2177 	rtl8169_init_phy(dev, tp);
  2178 	device_set_wakeup_enable(&pdev->dev, tp->features & RTL_FEATURE_WOL);
  2178 	device_set_wakeup_enable(&pdev->dev, tp->features & RTL_FEATURE_WOL);
  2179 	if (tp->ecdev && ecdev_open(tp->ecdev)) {
  2179 
  2180 		ecdev_withdraw(tp->ecdev);
  2180 	if (tp->ecdev) {
  2181 		goto err_out_msi_5;
  2181 		rc = ecdev_open(tp->ecdev);
  2182 	}
  2182 		if (rc) {
  2183 
  2183 			ecdev_withdraw(tp->ecdev);
       
  2184 			goto err_out_msi_5;
       
  2185 		}
       
  2186 	}
  2184 
  2187 
  2185 out:
  2188 out:
  2186 	return rc;
  2189 	return rc;
  2187 
  2190 
  2188 err_out_msi_5:
  2191 err_out_msi_5: