net: bcmgenet: abort suspend on error
authorDoug Berger <opendmb@gmail.com>
Sat, 17 Nov 2018 02:00:22 +0000 (18:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Nov 2018 06:04:39 +0000 (22:04 -0800)
commitc5a54bbcececa36852807c36157a86d808b62310
tree7c6cb635b310c7f7d0b94f0732a81653c3ec50ac
parenta94cbf03eb514d4d64d8c4f4caa0616b7ce5040a
net: bcmgenet: abort suspend on error

If an error occurs during suspension of the driver the driver should
restore the hardware configuration and return an error to force the
system to resume.

Fixes: 0db55093b566 ("net: bcmgenet: return correct value 'ret' from bcmgenet_power_down")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c