diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-12-05 16:10:36 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-12-05 22:05:09 +0100 |
commit | 3bb6ee8dd530d01724ceb7c3d5bb68bd1898726a (patch) | |
tree | e5f75d4954f0acd0f6920e2f2335aca5ebbc8f82 | |
parent | 699a4a1eca1ba836159f1ce4dec440bc22b7f3e8 (diff) | |
download | barebox-3bb6ee8dd530d01724ceb7c3d5bb68bd1898726a.tar.gz barebox-3bb6ee8dd530d01724ceb7c3d5bb68bd1898726a.tar.xz |
mci: add the probe parameter if any error happened during the probe
as example today if the timeout happened we can not probe the SD card again
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/mci/mci-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index 1da7aff048..e9fe87ca40 100644 --- a/drivers/mci/mci-core.c +++ b/drivers/mci/mci-core.c @@ -1380,7 +1380,7 @@ static int mci_probe(struct device_d *mci_dev) #ifdef CONFIG_MCI_STARTUP /* if enabled, probe the attached card immediately */ rc = mci_card_probe(mci_dev); - if (rc == -ENODEV) { + if (rc) { /* * If it fails, add the 'probe' parameter to give the user * a chance to insert a card and try again. Note: This may fail |