diff --git a/[refs] b/[refs] index 5d2b4e76cef5..af237db62088 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8f230f454fe04ba326ffaead3a6b88dcf44eaf4b +refs/heads/master: 30201e7f3ac639fe98fcd25d40346b65dde9ecba diff --git a/trunk/drivers/mmc/core/core.c b/trunk/drivers/mmc/core/core.c index 722af2dce3bb..9683d4d3fced 100644 --- a/trunk/drivers/mmc/core/core.c +++ b/trunk/drivers/mmc/core/core.c @@ -1506,8 +1506,12 @@ void mmc_rescan(struct work_struct *work) mmc_bus_get(host); - /* if there is a card registered, check whether it is still present */ - if ((host->bus_ops != NULL) && host->bus_ops->detect && !host->bus_dead) + /* + * if there is a _removable_ card registered, check whether it is + * still present + */ + if (host->bus_ops && host->bus_ops->detect && !host->bus_dead + && mmc_card_is_removable(host)) host->bus_ops->detect(host); mmc_bus_put(host);