|
@@ -2325,14 +2325,13 @@ int mmc_detect_card_removed(struct mmc_host *host)
|
|
|
* The card will be considered unchanged unless we have been asked to
|
|
|
* detect a change or host requires polling to provide card detection.
|
|
|
*/
|
|
|
- if (!host->detect_change && !(host->caps & MMC_CAP_NEEDS_POLL) &&
|
|
|
- !(host->caps2 & MMC_CAP2_DETECT_ON_ERR))
|
|
|
+ if (!host->detect_change && !(host->caps & MMC_CAP_NEEDS_POLL))
|
|
|
return ret;
|
|
|
|
|
|
host->detect_change = 0;
|
|
|
if (!ret) {
|
|
|
ret = _mmc_detect_card_removed(host);
|
|
|
- if (ret && (host->caps2 & MMC_CAP2_DETECT_ON_ERR)) {
|
|
|
+ if (ret && (host->caps & MMC_CAP_NEEDS_POLL)) {
|
|
|
/*
|
|
|
* Schedule a detect work as soon as possible to let a
|
|
|
* rescan handle the card removal.
|