mirror of
https://xff.cz/git/u-boot/
synced 2025-11-02 19:36:22 +01:00
net: phy: Handle phy_startup() error codes properly
Propagate error code from genphy_update_link() to phy startup(). Signed-off-by: Michal Simek <michal.simek@xilinx.com> Acked-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
@@ -34,9 +34,13 @@ static int smsc_parse_status(struct phy_device *phydev)
|
||||
|
||||
static int smsc_startup(struct phy_device *phydev)
|
||||
{
|
||||
genphy_update_link(phydev);
|
||||
smsc_parse_status(phydev);
|
||||
return 0;
|
||||
int ret;
|
||||
|
||||
ret = genphy_update_link(phydev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return smsc_parse_status(phydev);
|
||||
}
|
||||
|
||||
static struct phy_driver lan8700_driver = {
|
||||
|
||||
Reference in New Issue
Block a user