mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
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>
This commit is contained in:
parent
4d1ed9c715
commit
e76d2dcaeb
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue