mmc: core: Add bus_ops for runtime pm callbacks
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 2 May 2013 12:02:37 +0000 (14:02 +0200)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 04:43:10 +0000 (12:43 +0800)
commit32c59bface93104d09e847e88b35eb336b0448ec
tree20115ead199e189ab58e5524ae81d6af58cdec47
parent1cdf166111e849c6670fdd8a1041dd1e0cb214c4
mmc: core: Add bus_ops for runtime pm callbacks

SDIO is the only protocol that uses runtime pm for the card device
right now. To provide the option for sd and mmc to use runtime pm as
well the bus_ops callback are extended with two new functions. One for
runtime_suspend and one for runtime_resume.

This patch will also implement the callbacks for SDIO to make sure
existing functionality is maintained. It also prepares to move
away from using the mmc_power_restore_host API, since it is not
needed when using runtime PM.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/bus.c
drivers/mmc/core/core.c
drivers/mmc/core/core.h
drivers/mmc/core/sdio.c