OSDN Git Service

stmmac: dwmac-socfpga: add PM ops and resume function
authorJoachim Eastwood <manabian@gmail.com>
Sun, 1 May 2016 20:58:20 +0000 (22:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 May 2016 19:22:19 +0000 (15:22 -0400)
commit56868deece922283b367d08f1d647726d5b307d9
tree67186dd432f600934f98738be34add12603553ee
parentf4e7bd81b1630018952187e5bd731755a6536a61
stmmac: dwmac-socfpga: add PM ops and resume function

Implement the needed PM callbacks in the driver instead of
relying on the init/exit hooks in stmmac_platform. This gives
the driver more flexibility in how the code is organized.

Eventually the init/exit callbacks will be deprecated in favor
of the standard PM callbacks and driver remove function.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Tested-by: Marek Vasut <marex@denx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c