]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - drivers/mmc/mmc.c
MMC: Do not set unsupported bits in OCR response
[linux-2.6.git] / drivers / mmc / mmc.c
index ec8168ac75b1602a52e81380f3443ceab1d72082..766bc54406e5864111ded440d722eb694bd03d3d 100644 (file)
@@ -475,7 +475,7 @@ static u32 mmc_select_voltage(struct mmc_host *host, u32 ocr)
        if (bit) {
                bit -= 1;
 
-               ocr = 3 << bit;
+               ocr &= 3 << bit;
 
                host->ios.vdd = bit;
                mmc_set_ios(host);