]> Pileus Git - ~andy/linux/blobdiff - drivers/mmc/core/core.c
Merge branch 'drop-time' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek...
[~andy/linux] / drivers / mmc / core / core.c
index 57a2b403bf8e9107204c3cda03671a5a1c8bd87d..098374b1ab2b99cb769d7ddf6a2a9d0a2a7672cb 100644 (file)
@@ -2460,7 +2460,8 @@ void mmc_rescan(struct work_struct *work)
         */
        mmc_bus_put(host);
 
-       if (host->ops->get_cd && host->ops->get_cd(host) == 0) {
+       if (!(host->caps & MMC_CAP_NONREMOVABLE) && host->ops->get_cd &&
+                       host->ops->get_cd(host) == 0) {
                mmc_claim_host(host);
                mmc_power_off(host);
                mmc_release_host(host);