|
@@ -2498,9 +2498,6 @@ int _mmc_detect_card_removed(struct mmc_host *host)
|
|
|
{
|
|
{
|
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
|
|
- if (host->caps & MMC_CAP_NONREMOVABLE)
|
|
|
|
|
- return 0;
|
|
|
|
|
-
|
|
|
|
|
if (!host->card || mmc_card_removed(host->card))
|
|
if (!host->card || mmc_card_removed(host->card))
|
|
|
return 1;
|
|
return 1;
|
|
|
|
|
|
|
@@ -2536,6 +2533,9 @@ int mmc_detect_card_removed(struct mmc_host *host)
|
|
|
if (!card)
|
|
if (!card)
|
|
|
return 1;
|
|
return 1;
|
|
|
|
|
|
|
|
|
|
+ if (host->caps & MMC_CAP_NONREMOVABLE)
|
|
|
|
|
+ return 0;
|
|
|
|
|
+
|
|
|
ret = mmc_card_removed(card);
|
|
ret = mmc_card_removed(card);
|
|
|
/*
|
|
/*
|
|
|
* The card will be considered unchanged unless we have been asked to
|
|
* The card will be considered unchanged unless we have been asked to
|