mmc: omap_hsmmc: add hibernation support
authorRuss Dill <Russ.Dill@ti.com>
Fri, 27 Feb 2015 11:24:34 +0000 (13:24 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 23 Mar 2015 13:13:37 +0000 (14:13 +0100)
commit3d3bbfbdfd61201f8363360bc680590399d4d93b
tree1a9ac3cac90103b217c186ee10f6e2b74439f16d
parentcde592cbe53fdfbcffb3b5ed01eca35b1b811bb6
mmc: omap_hsmmc: add hibernation support

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

Signed-off-by: Russ Dill <Russ.Dill@ti.com>
[Grygorii.Strashko@linaro.org: rebased on top of K4.0]
Signed-off-by: Grygorii Strashko <grygorii.strashko@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/omap_hsmmc.c