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 <sthumma@codeaurora.org>
[merez@codeaurora.org: fix trivial conflicts]
Signed-off-by: Maya Erez <merez@codeaurora.org>
This commit is contained in:
Sujit Reddy Thumma 2014-12-03 18:10:07 +02:00 committed by Subhash Jadavani
parent 71743a7317
commit 6e40d14408
2 changed files with 3 additions and 1 deletions

View file

@ -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.

View file

@ -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);