amd-xgbe: Handle return code from software reset function
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Wed, 28 Jun 2017 18:42:16 +0000 (13:42 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jun 2017 19:14:17 +0000 (15:14 -0400)
commit42d452dc4a3674bbe53fa80f00f31f72385252dd
treedfe439db768303505685817ddd995eae8bb8ea52
parent9018ff5331a64aa9e6dd600345bb1d087684fdff
amd-xgbe: Handle return code from software reset function

Currently the function that performs a software reset of the hardware
provides a return code.  During driver probe check this return code and
exit with an error if the software reset fails.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-main.c