summaryrefslogtreecommitdiff
path: root/include/linux/mmc/host.h
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-07-16 11:36:26 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-07-16 11:36:25 -0700
commit385635a167a7f7b8d7e8501e782e173244b7cdf3 (patch)
tree5a54330a1b4f71dcfb26fa4676ad0d8f56e6b902 /include/linux/mmc/host.h
parent5e972f6b60d0559ad35a829516491373a68dae40 (diff)
parenta4d77289532a5dd7c0d638dc20f69ea73f98f2cf (diff)
Merge "mmc: core: Update SD card removal logic based on cd gpio state"
Diffstat (limited to 'include/linux/mmc/host.h')
-rw-r--r--include/linux/mmc/host.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index 89e19dd4b144..48849acf34ff 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -643,6 +643,7 @@ static inline void *mmc_cmdq_private(struct mmc_host *host)
#define mmc_bus_manual_resume(host) ((host)->bus_resume_flags & \
MMC_BUSRESUME_MANUAL_RESUME)
+#ifdef CONFIG_MMC_BLOCK_DEFERRED_RESUME
static inline void mmc_set_bus_resume_policy(struct mmc_host *host, int manual)
{
if (manual)
@@ -650,6 +651,11 @@ static inline void mmc_set_bus_resume_policy(struct mmc_host *host, int manual)
else
host->bus_resume_flags &= ~MMC_BUSRESUME_MANUAL_RESUME;
}
+#else
+static inline void mmc_set_bus_resume_policy(struct mmc_host *host, int manual)
+{
+}
+#endif
extern int mmc_resume_bus(struct mmc_host *host);