mmc: core: Push common suspend|resume code into each bus_ops
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Jun 2013 15:03:38 +0000 (17:03 +0200)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 05:03:43 +0000 (13:03 +0800)
commit8acf2c95afce699dbebd7b3be7de3b3fa52c0427
treecd83c61470af69422a5244566a4648d469d0243c
parentcf46d2411731e8491054e595bc3eefa0d37ce5ee
mmc: core: Push common suspend|resume code into each bus_ops

By moving code from the mmc_suspend|resume_host down into each
.suspend|resume bus_ops callback, we get a more flexible solution.

Some nice side effects are that we get a better understanding of each
bus_ops suspend|resume sequence and the common code don't have to take
care of specific corner cases, especially for the SDIO case.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Conflicts:
drivers/mmc/core/core.c
drivers/mmc/core/sd.c
drivers/mmc/core/core.c
drivers/mmc/core/mmc.c
drivers/mmc/core/sd.c
drivers/mmc/core/sdio.c