net/sh-eth: Check return value of sh_eth_reset when chip reset fail
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Mon, 25 Jun 2012 17:35:12 +0000 (17:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2012 06:54:32 +0000 (23:54 -0700)
commit5cee1d37c9f565f1aa515408863dbb13db67dab9
tree9be17e3476a340f7b3545d87d99d1d853088df2b
parent5e7a76be0e48217aff6b6f34bdcce4725db999e2
net/sh-eth: Check return value of sh_eth_reset when chip reset fail

The sh_eth_reset function resets chip, but this performs nothing when failed.
This changes sh_eth_reset return an error, when this failed in reset.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c