aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/zynq_gem.c
diff options
context:
space:
mode:
authorMichal Simek2016-05-18 14:37:23 +0200
committerMichal Simek2016-05-24 13:17:59 +0200
commit7a673f0b0642fc542b464a91957bdd44179296b2 (patch)
tree237bee7f6b8986ca7ecfb3327e720a27eb5ee9e0 /drivers/net/zynq_gem.c
parent62afc601883e788f3f22291202d5b2a23c1a8b06 (diff)
phy: Wire return value from phy_config()
Fix zynq_gem driver to handle error from phy_config correctly. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/net/zynq_gem.c')
-rw-r--r--drivers/net/zynq_gem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c
index 3704ce0dd78..4d9c296c0ba 100644
--- a/drivers/net/zynq_gem.c
+++ b/drivers/net/zynq_gem.c
@@ -352,9 +352,8 @@ static int zynq_phy_init(struct udevice *dev)
priv->phydev->supported = supported | ADVERTISED_Pause |
ADVERTISED_Asym_Pause;
priv->phydev->advertising = priv->phydev->supported;
- phy_config(priv->phydev);
- return 0;
+ return phy_config(priv->phydev);
}
static int zynq_gem_init(struct udevice *dev)