aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 57a2b403bf8e..098374b1ab2b 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -2460,7 +2460,8 @@ void mmc_rescan(struct work_struct *work)
2460 */ 2460 */
2461 mmc_bus_put(host); 2461 mmc_bus_put(host);
2462 2462
2463 if (host->ops->get_cd && host->ops->get_cd(host) == 0) { 2463 if (!(host->caps & MMC_CAP_NONREMOVABLE) && host->ops->get_cd &&
2464 host->ops->get_cd(host) == 0) {
2464 mmc_claim_host(host); 2465 mmc_claim_host(host);
2465 mmc_power_off(host); 2466 mmc_power_off(host);
2466 mmc_release_host(host); 2467 mmc_release_host(host);