commit | 29041dbe199b0dff392bf1b9d634357da0b3208f | [log] [tgz] |
---|---|---|
author | Pierre Ossman <drzeus@drzeus.cx> | Sat Feb 10 15:52:23 2007 +0100 |
committer | Pierre Ossman <drzeus@drzeus.cx> | Tue May 01 13:04:16 2007 +0200 |
tree | 57ad87d6e9577f9558a68dca55592d2368b2f545 | |
parent | f74d132cec60b686bce1f284822c1a496700bd3c [diff] [blame] |
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>
diff --git a/drivers/mmc/mmc_sysfs.c b/drivers/mmc/mmc_sysfs.c index e0e82d8..06f264b 100644 --- a/drivers/mmc/mmc_sysfs.c +++ b/drivers/mmc/mmc_sysfs.c
@@ -217,6 +217,8 @@ device_del(&card->dev); } } + if (ret == 0) + mmc_card_set_present(card); return ret; }