aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/mmc_sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/mmc_sysfs.c')
-rw-r--r--drivers/mmc/mmc_sysfs.c2
1 files changed, 2 insertions, 0 deletions
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