devices/r8169-2.6.27-ethercat.c
changeset 2589 2b9c78543663
parent 1899 689b41081536
equal deleted inserted replaced
2415:af21f0bdc7c9 2589:2b9c78543663
  2011 		       dev->dev_addr[4], dev->dev_addr[5], xid, dev->irq);
  2011 		       dev->dev_addr[4], dev->dev_addr[5], xid, dev->irq);
  2012 	}
  2012 	}
  2013 
  2013 
  2014 	rtl8169_init_phy(dev, tp);
  2014 	rtl8169_init_phy(dev, tp);
  2015 
  2015 
  2016 	if (tp->ecdev && ecdev_open(tp->ecdev)) {
  2016 	if (tp->ecdev) {
  2017 		ecdev_withdraw(tp->ecdev);
  2017 		rc = ecdev_open(tp->ecdev);
  2018 		goto err_out_msi_5;
  2018 		if (rc) {
       
  2019 			ecdev_withdraw(tp->ecdev);
       
  2020 			goto err_out_msi_5;
       
  2021 		}
  2019 	}
  2022 	}
  2020 
  2023 
  2021 out:
  2024 out:
  2022 	return rc;
  2025 	return rc;
  2023 
  2026