diff options
author | Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> | 2016-03-30 06:59:49 (GMT) |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2016-04-04 18:28:39 (GMT) |
commit | e76d2dcaeb9fe3d0d6f5105de518178b45423842 (patch) | |
tree | 8afc58202a1a2010a0e6e07bfa6a53471ff4b882 /drivers/net | |
parent | 4d1ed9c71561becbb9d612fe584bb6332eb24168 (diff) | |
download | u-boot-e76d2dcaeb9fe3d0d6f5105de518178b45423842.tar.xz |
net: zynq_gem: Return error incase of invalid phy address
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 <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/zynq_gem.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 103ed61..52a8f27 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -638,9 +638,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) |