summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/core.c
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2013-05-02 14:02:37 +0200
committerChris Ball <cjb@laptop.org>2013-05-26 14:23:15 -0400
commit12d01d0b813b93e7bde1b5f468b5c85aa8b33590 (patch)
treefc53d379c37f5c5f156ba0f2b263ae057b35ca64 /drivers/mmc/core/core.c
parent39b9431b0f371294dd2d1a492cf77f2f17390a1f (diff)
downloadop-kernel-dev-12d01d0b813b93e7bde1b5f468b5c85aa8b33590.zip
op-kernel-dev-12d01d0b813b93e7bde1b5f468b5c85aa8b33590.tar.gz
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>
Diffstat (limited to 'drivers/mmc/core/core.c')
-rw-r--r--drivers/mmc/core/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index d856871..dc0cb59 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -1478,7 +1478,7 @@ void mmc_set_driver_type(struct mmc_host *host, unsigned int drv_type)
* If a host does all the power sequencing itself, ignore the
* initial MMC_POWER_UP stage.
*/
-static void mmc_power_up(struct mmc_host *host)
+void mmc_power_up(struct mmc_host *host)
{
int bit;
OpenPOWER on IntegriCloud