net: zynq_gem: Return error incase of invalid phy address
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Wed, 30 Mar 2016 06:59:49 +0000 (12:29 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 4 Apr 2016 18:28:39 +0000 (20:28 +0200)
commite76d2dcaeb9fe3d0d6f5105de518178b45423842
tree8afc58202a1a2010a0e6e07bfa6a53471ff4b882
parent4d1ed9c71561becbb9d612fe584bb6332eb24168
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>
drivers/net/zynq_gem.c