Skip to content

Commit

Permalink
net: zynq_gem: Return error incase of invalid phy address
Browse files Browse the repository at this point in the history
Return error from probe in case of invalid phy address.
This fixes the issue of uboot crash if phy is not detected.

Signed-off-by: Siva Durga Prasad Paladugu <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
  • Loading branch information
Siva Durga Prasad Paladugu authored and Michal Simek committed Mar 31, 2016
1 parent 68b454f commit df886fd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/zynq_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,9 +661,7 @@ static int zynq_gem_probe(struct udevice *dev)
if (ret)
return ret;

zynq_phy_init(dev);

return 0;
return zynq_phy_init(dev);
}

static int zynq_gem_remove(struct udevice *dev)
Expand Down

0 comments on commit df886fd

Please sign in to comment.