devices/r8169-2.6.31-ethercat.c
branchstable-1.5
changeset 2582 87e502828b3f
parent 2421 bc2d4bf9cbe5
equal deleted inserted replaced
2581:d94281cb835a 2582:87e502828b3f
  2215 		       dev->dev_addr[4], dev->dev_addr[5], xid, dev->irq);
  2215 		       dev->dev_addr[4], dev->dev_addr[5], xid, dev->irq);
  2216 	}
  2216 	}
  2217 
  2217 
  2218 	rtl8169_init_phy(dev, tp);
  2218 	rtl8169_init_phy(dev, tp);
  2219 	device_set_wakeup_enable(&pdev->dev, tp->features & RTL_FEATURE_WOL);
  2219 	device_set_wakeup_enable(&pdev->dev, tp->features & RTL_FEATURE_WOL);
  2220 	if (tp->ecdev && ecdev_open(tp->ecdev)) {
  2220 
  2221 		ecdev_withdraw(tp->ecdev);
  2221 	if (tp->ecdev) {
  2222 		goto err_out_msi_5;
  2222 		rc = ecdev_open(tp->ecdev);
  2223 	}
  2223 		if (rc) {
  2224 
  2224 			ecdev_withdraw(tp->ecdev);
       
  2225 			goto err_out_msi_5;
       
  2226 		}
       
  2227 	}
  2225 
  2228 
  2226 out:
  2229 out:
  2227 	return rc;
  2230 	return rc;
  2228 
  2231 
  2229 err_out_msi_5:
  2232 err_out_msi_5: