diff options
Diffstat (limited to 'drivers/mmc/core/sd.c')
-rw-r--r-- | drivers/mmc/core/sd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index 49da4dffd28e..de062ebd8b26 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c | |||
@@ -772,6 +772,8 @@ int mmc_attach_sd(struct mmc_host *host, u32 ocr) | |||
772 | WARN_ON(!host->claimed); | 772 | WARN_ON(!host->claimed); |
773 | 773 | ||
774 | mmc_sd_attach_bus_ops(host); | 774 | mmc_sd_attach_bus_ops(host); |
775 | if (host->ocr_avail_sd) | ||
776 | host->ocr_avail = host->ocr_avail_sd; | ||
775 | 777 | ||
776 | /* | 778 | /* |
777 | * We need to get OCR a different way for SPI. | 779 | * We need to get OCR a different way for SPI. |
@@ -795,7 +797,8 @@ int mmc_attach_sd(struct mmc_host *host, u32 ocr) | |||
795 | ocr &= ~0x7F; | 797 | ocr &= ~0x7F; |
796 | } | 798 | } |
797 | 799 | ||
798 | if (ocr & MMC_VDD_165_195) { | 800 | if ((ocr & MMC_VDD_165_195) && |
801 | !(host->ocr_avail_sd & MMC_VDD_165_195)) { | ||
799 | printk(KERN_WARNING "%s: SD card claims to support the " | 802 | printk(KERN_WARNING "%s: SD card claims to support the " |
800 | "incompletely defined 'low voltage range'. This " | 803 | "incompletely defined 'low voltage range'. This " |
801 | "will be ignored.\n", mmc_hostname(host)); | 804 | "will be ignored.\n", mmc_hostname(host)); |