summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2012-10-18 09:54:31 +0300
committerChris Ball <cjb@laptop.org>2012-11-07 15:02:01 -0500
commit90b3e6c53b006d55952183d8ada2ce3ebc0dce06 (patch)
treee4d2580c3a14f079fe2705740142d477bf9ed16d /drivers/mmc
parent6eb30adf962983754f1a05eb79c2a9260fb7f5a6 (diff)
downloadblackbird-op-linux-90b3e6c53b006d55952183d8ada2ce3ebc0dce06.tar.gz
blackbird-op-linux-90b3e6c53b006d55952183d8ada2ce3ebc0dce06.zip
mmc: sdhci-pci: fix 'Invalid iomem size' error message condition
The SDHCI standard defines a 256 byte register set but a device that specifies a larger iomem region is not an error. Alter the message condition accordingly. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c
index 4bb74b042a06..04936f353ced 100644
--- a/drivers/mmc/host/sdhci-pci.c
+++ b/drivers/mmc/host/sdhci-pci.c
@@ -1196,7 +1196,7 @@ static struct sdhci_pci_slot * __devinit sdhci_pci_probe_slot(
return ERR_PTR(-ENODEV);
}
- if (pci_resource_len(pdev, bar) != 0x100) {
+ if (pci_resource_len(pdev, bar) < 0x100) {
dev_err(&pdev->dev, "Invalid iomem size. You may "
"experience problems.\n");
}
OpenPOWER on IntegriCloud