]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit2f5c54ce0d11a527de3544e1b2c904544a2c1dd7
tree75582b517804bb481c7cf7f16e08b1ed4ef2bc43
parentcac5e65e8a7ea074f2626d2eaa53aa308452dec4
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