diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2007-02-10 09:52:23 -0500 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-05-01 07:04:16 -0400 |
commit | 29041dbe199b0dff392bf1b9d634357da0b3208f (patch) | |
tree | 57ad87d6e9577f9558a68dca55592d2368b2f545 /drivers/mmc | |
parent | f74d132cec60b686bce1f284822c1a496700bd3c (diff) |
mmc: Move "present" marking
The "present" state indicates that the card is a registered device, so
it is more clear to put it together with the actual registration.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/mmc.c | 2 | ||||
-rw-r--r-- | drivers/mmc/mmc_sysfs.c | 2 |
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 | ||