]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mmc: it's safe to ignore mmc_send_if_cond() return value
authorIlya Yanok <yanok@emcraft.com>
Thu, 14 May 2009 10:03:09 +0000 (14:03 +0400)
committerWolfgang Denk <wd@denx.de>
Wed, 3 Jun 2009 22:15:09 +0000 (00:15 +0200)
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@emcraft.com>
drivers/mmc/mmc.c

index 7791c3896e98a00461bda3d4f18bb55d599bad82..27116bf2bcfcbd62d42863750895d6e77d32a405 100644 (file)
@@ -867,10 +867,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);