diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2012-10-18 10:54:31 +0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-11-08 00:02:01 +0400 |
commit | 90b3e6c53b006d55952183d8ada2ce3ebc0dce06 (patch) | |
tree | e4d2580c3a14f079fe2705740142d477bf9ed16d /drivers | |
parent | 6eb30adf962983754f1a05eb79c2a9260fb7f5a6 (diff) | |
download | linux-90b3e6c53b006d55952183d8ada2ce3ebc0dce06.tar.xz |
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')
-rw-r--r-- | drivers/mmc/host/sdhci-pci.c | 2 |
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"); } |