mmc: fix the ext_csd revision
authorMinkyu Kang <mk7.kang@samsung.com>
Mon, 21 Jun 2010 07:59:31 +0000 (16:59 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 21 Jun 2010 07:59:31 +0000 (16:59 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/mmc/mmc.c

index 317de3c..de19d72 100644 (file)
@@ -452,14 +452,15 @@ int mmc_change_freq(struct mmc *mmc)
                /* MMC v4.3 */
                mmc->version |= EXT_CSD_REV_1_3;
                break;
-       case EXT_CSD_REV_1_4:
-               /* Obeolete */
-               mmc->version |= EXT_CSD_REV_1_4;
-               break;
        case EXT_CSD_REV_1_5:
                /* MMC v4.41 */
                mmc->version |= EXT_CSD_REV_1_5;
                break;
+       case EXT_CSD_REV_1_4:
+               /* Obsolete */
+       default:
+               printf("Unknown revision - %x\n", ext_csd[192]);
+               return 0;
        }
 
        /* No high-speed support */