summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorNeilBrown <neil@brown.name>2015-03-25 22:43:37 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2015-03-27 10:57:55 +0100
commit40433267331bc6b9d70d5cdd14bfa2c8e3e5f0ec (patch)
tree21236a8f5a8f5acf11fa2ee99a7c895d4b736f02 /drivers/mmc
parentmmc: omap_hsmmc: stop using ->enable|disable() callbacks (diff)
downloadlinux-40433267331bc6b9d70d5cdd14bfa2c8e3e5f0ec.tar.xz
linux-40433267331bc6b9d70d5cdd14bfa2c8e3e5f0ec.zip
mmc: core: Remove the ->enable|disable() callbacks
These callbacks have been set to deprecated for some time. The last user (omap_hsmmc) has moved away from using them, which thus enables us to completely remove them. Signed-off-by: NeilBrown <neil@brown.name> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/core.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 23f10f72e5f3..709ada9f26b5 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -920,8 +920,6 @@ int __mmc_claim_host(struct mmc_host *host, atomic_t *abort)
wake_up(&host->wq);
spin_unlock_irqrestore(&host->lock, flags);
remove_wait_queue(&host->wq, &wait);
- if (host->ops->enable && !stop && host->claim_cnt == 1)
- host->ops->enable(host);
return stop;
}
@@ -940,9 +938,6 @@ void mmc_release_host(struct mmc_host *host)
WARN_ON(!host->claimed);
- if (host->ops->disable && host->claim_cnt == 1)
- host->ops->disable(host);
-
spin_lock_irqsave(&host->lock, flags);
if (--host->claim_cnt) {
/* Release for nested claim */