drivers: net: xgene: Correct probe sequence handling
authorQuan Nguyen <qnguyen@apm.com>
Tue, 29 Aug 2017 22:43:12 +0000 (15:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Aug 2017 23:13:08 +0000 (16:13 -0700)
commit183db481279437590f75a8a0479d512e5dd597de
tree8deb8f4c1b199361c6d0fa519771cbc1767ec816
parente7562597b46d099a78d45c781ee8d1a7a93c53f1
drivers: net: xgene: Correct probe sequence handling

The phy is connected at early stage of probe but not properly
disconnected if error occurs.  This patch fixes the issue.

Also changing the return type of xgene_enet_check_phy_handle(),
since this function always returns success.

Signed-off-by: Quan Nguyen <qnguyen@apm.com>
Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_main.c