summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>2016-03-30 12:29:49 +0530
committerMichal Simek <michal.simek@xilinx.com>2016-04-04 20:28:39 +0200
commite76d2dcaeb9fe3d0d6f5105de518178b45423842 (patch)
tree8afc58202a1a2010a0e6e07bfa6a53471ff4b882 /drivers/net
parent4d1ed9c71561becbb9d612fe584bb6332eb24168 (diff)
downloadu-boot-imx-e76d2dcaeb9fe3d0d6f5105de518178b45423842.zip
u-boot-imx-e76d2dcaeb9fe3d0d6f5105de518178b45423842.tar.gz
u-boot-imx-e76d2dcaeb9fe3d0d6f5105de518178b45423842.tar.bz2
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.c4
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)