[U-Boot] [PATCH] mmc: it's safe to ignore mmc_send_if_cond() return value
Ilya Yanok
yanok at emcraft.com
Thu May 14 12:03:09 CEST 2009
Return value of mmc_send_if_cond() can be safely ignored (as it is
done in Linux). This makes older cards work with MXC MCI controller.
Signed-off-by: Ilya Yanok <yanok at emcraft.com>
---
drivers/mmc/mmc.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 925f863..64a311d 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -868,10 +868,6 @@ int mmc_init(struct mmc *mmc)
/* Test for SD version 2 */
err = mmc_send_if_cond(mmc);
- /* If we got an error other than timeout, we bail */
- if (err && err != TIMEOUT)
- return err;
-
/* Now try to get the SD card's operating condition */
err = sd_send_op_cond(mmc);
--
1.6.0.6
More information about the U-Boot
mailing list