diff options
-rw-r--r-- | drivers/mmc/core/core.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 198f70bad908..4b1d8fb04e9b 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c | |||
@@ -1531,9 +1531,11 @@ void mmc_rescan(struct work_struct *work) | |||
1531 | && mmc_card_is_removable(host)) | 1531 | && mmc_card_is_removable(host)) |
1532 | host->bus_ops->detect(host); | 1532 | host->bus_ops->detect(host); |
1533 | 1533 | ||
1534 | /* | ||
1535 | * Let mmc_bus_put() free the bus/bus_ops if we've found that | ||
1536 | * the card is no longer present. | ||
1537 | */ | ||
1534 | mmc_bus_put(host); | 1538 | mmc_bus_put(host); |
1535 | |||
1536 | |||
1537 | mmc_bus_get(host); | 1539 | mmc_bus_get(host); |
1538 | 1540 | ||
1539 | /* if there still is a card present, stop here */ | 1541 | /* if there still is a card present, stop here */ |