]> git.baikalelectronics.ru Git - kernel.git/commit
net: davinci_mdio: add hibernation callbacks
authorGrygorii Strashko <Grygorii.Strashko@linaro.org>
Fri, 27 Feb 2015 11:19:44 +0000 (13:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Mar 2015 18:40:22 +0000 (13:40 -0500)
commitebbbb016a0435472c2e1f5fffe7636bf4b254d62
tree75582b517804bb481c7cf7f16e08b1ed4ef2bc43
parent6dadeeafcc7e2070eb1aa283ddbcbbabea9375b4
net: davinci_mdio: add hibernation callbacks

Setting a dev_pm_ops suspend_late/resume_early pair but not a
set of hibernation functions means those pm functions will
not be called upon hibernation.
Fix this by using SET_LATE_SYSTEM_SLEEP_PM_OPS, which appropriately
assigns the suspend and hibernation handlers and move
davinci_mdio_x callbacks under CONFIG_PM_SLEEP to avoid build warnings.

Signed-off-by: Grygorii Strashko <Grygorii.Strashko@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_mdio.c