From 6e40d1440803a1ad8aff848f151a848b91c88188 Mon Sep 17 00:00:00 2001 From: Sujit Reddy Thumma Date: Wed, 3 Dec 2014 18:10:07 +0200 Subject: [PATCH] mmc: core: Export mmc_set_ios so that host drivers can use it mmc_set_ios() is used by host drivers during suspend/resume routines in indirect way i.e., by calling host->ops->set_ios(). But now with MMC_CLKGATE enabled, mmc_set_ios() also updates host->clk_gated flag. So export this API so that host controller drivers can use it. Change-Id: Ib0c177635bb8d87ba68c98e08b8d940c73f2b80c Signed-off-by: Sujit Reddy Thumma [merez@codeaurora.org: fix trivial conflicts] Signed-off-by: Maya Erez --- drivers/mmc/core/core.c | 3 ++- include/linux/mmc/core.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index c53a44de86f2..07d2c2a24c66 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1058,7 +1058,7 @@ EXPORT_SYMBOL(mmc_put_card); * Internal function that does the actual ios call to the host driver, * optionally printing some debug output. */ -static inline void mmc_set_ios(struct mmc_host *host) +void mmc_set_ios(struct mmc_host *host) { struct mmc_ios *ios = &host->ios; @@ -1072,6 +1072,7 @@ static inline void mmc_set_ios(struct mmc_host *host) mmc_set_ungated(host); host->ops->set_ios(host, ios); } +EXPORT_SYMBOL(mmc_set_ios); /* * Control chip select pin on a host. diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h index f7b930b735fc..c5f305249919 100644 --- a/include/linux/mmc/core.h +++ b/include/linux/mmc/core.h @@ -161,6 +161,7 @@ extern void mmc_release_host(struct mmc_host *host); extern void mmc_get_card(struct mmc_card *card); extern void mmc_put_card(struct mmc_card *card); +extern void mmc_set_ios(struct mmc_host *host); extern int mmc_flush_cache(struct mmc_card *); extern int mmc_detect_card_removed(struct mmc_host *host);