diff options
author | Michal Simek <michal.simek@xilinx.com> | 2016-05-18 14:37:23 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2016-05-24 13:17:59 +0200 |
commit | 7a673f0b0642fc542b464a91957bdd44179296b2 (patch) | |
tree | 237bee7f6b8986ca7ecfb3327e720a27eb5ee9e0 /drivers/net/phy/phy.c | |
parent | 62afc601883e788f3f22291202d5b2a23c1a8b06 (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/phy/phy.c')
-rw-r--r-- | drivers/net/phy/phy.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 98986bb6f1..4b6c09f88e 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -879,9 +879,7 @@ __weak int board_phy_config(struct phy_device *phydev) int phy_config(struct phy_device *phydev) { /* Invoke an optional board-specific helper */ - board_phy_config(phydev); - - return 0; + return board_phy_config(phydev); } int phy_shutdown(struct phy_device *phydev) |