aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/mmc.c2
-rw-r--r--drivers/mmc/mmc_sysfs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index ccd3037da249..9ffeeb2cba45 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -1604,8 +1604,6 @@ static void mmc_rescan(struct work_struct *work)
1604 if (!mmc_card_present(card) && !mmc_card_dead(card)) { 1604 if (!mmc_card_present(card) && !mmc_card_dead(card)) {
1605 if (mmc_register_card(card)) 1605 if (mmc_register_card(card))
1606 mmc_card_set_dead(card); 1606 mmc_card_set_dead(card);
1607 else
1608 mmc_card_set_present(card);
1609 } 1607 }
1610 1608
1611 /* 1609 /*
diff --git a/drivers/mmc/mmc_sysfs.c b/drivers/mmc/mmc_sysfs.c
index e0e82d849d5f..06f264b2f79c 100644
--- a/drivers/mmc/mmc_sysfs.c
+++ b/drivers/mmc/mmc_sysfs.c
@@ -217,6 +217,8 @@ int mmc_register_card(struct mmc_card *card)
217 device_del(&card->dev); 217 device_del(&card->dev);
218 } 218 }
219 } 219 }
220 if (ret == 0)
221 mmc_card_set_present(card);
220 return ret; 222 return ret;
221} 223}
222 224