diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2013-12-16 10:23:22 -0500 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-02-13 22:58:41 -0500 |
commit | 10e5d9652499a8bc0a99ffc2a96a3030fee576cb (patch) | |
tree | 96e06b53dd98374f23223aba1cd84ae54af36ff5 /include/linux | |
parent | 469a00b017a9b2c630bff962ffd64ba626977830 (diff) |
mmc: core: Use mmc_flush_cache() during mmc suspend
Earlier we disabled the cache during suspend, which meant a flush was
internally at the eMMC performed as well.
To simplify code we can make use of the mmc_flush_cache(), during mmc
suspend, which makes the mmc_cache_ctrl() redundant so then we can
remove it.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mmc/host.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 4c0176a8e474..f69bd70b1046 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h | |||
@@ -385,8 +385,6 @@ int mmc_power_restore_host(struct mmc_host *host); | |||
385 | void mmc_detect_change(struct mmc_host *, unsigned long delay); | 385 | void mmc_detect_change(struct mmc_host *, unsigned long delay); |
386 | void mmc_request_done(struct mmc_host *, struct mmc_request *); | 386 | void mmc_request_done(struct mmc_host *, struct mmc_request *); |
387 | 387 | ||
388 | int mmc_cache_ctrl(struct mmc_host *, u8); | ||
389 | |||
390 | static inline void mmc_signal_sdio_irq(struct mmc_host *host) | 388 | static inline void mmc_signal_sdio_irq(struct mmc_host *host) |
391 | { | 389 | { |
392 | host->ops->enable_sdio_irq(host, 0); | 390 | host->ops->enable_sdio_irq(host, 0); |