OSDN Git Service

Merge branch 'bcmgenet-fix-aborted-suspend'
authorDavid S. Miller <davem@davemloft.net>
Sun, 18 Nov 2018 06:04:39 +0000 (22:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Nov 2018 06:04:39 +0000 (22:04 -0800)
Doug Berger says:

====================
net: bcmgenet: fix aborted suspend

It is not enough to return an error code from the driver suspend
routine. The driver must also restore the device functionality.

This commit corrects the issue introduced by commit 0db55093b566
("net: bcmgenet: return correct value 'ret' from bcmgenet_power_down")
by calling the driver resume function if the suspend function returns
an error.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

Trivial merge