mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 12:13:00 -04:00
phylib: phy_startup() should return an error code on failure
phy_startup() calls the PHY driver's startup function, but it ignores the return code from that function, and so it never returns any failures. Signed-off-by: Timur Tabi <timur@freescale.com>
This commit is contained in:
parent
bc46dfac2f
commit
6e5b9ac097
@ -723,10 +723,13 @@ struct phy_device *phy_connect(struct mii_dev *bus, int addr,
|
|||||||
return phydev;
|
return phydev;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Start the PHY. Returns 0 on success, or a negative error code.
|
||||||
|
*/
|
||||||
int phy_startup(struct phy_device *phydev)
|
int phy_startup(struct phy_device *phydev)
|
||||||
{
|
{
|
||||||
if (phydev->drv->startup)
|
if (phydev->drv->startup)
|
||||||
phydev->drv->startup(phydev);
|
return phydev->drv->startup(phydev);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user