Skip to contentSkip to conversation

sdhci-pltfm: Do not print errors in case of an extended iomem size

PATCH Superseded Anton Vorontsov 1 participant 1 message Feb 19, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 sdhci-pltfm: Do not print errors in case of an extended iomem size

Some hosts have an extended SDHCI iomem size, so the driver should only print errors if the iomem size is less than 0x100.

---
 drivers/mmc/host/sdhci-pltfm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/host/sdhci-pltfm.c +1 -1
index d0a52cb..3e65221 100644
@@ -61,7 +61,7 @@ static int __devinit sdhci_pltfm_probe(struct platform_device *pdev)
 		goto err;
 	}
 
-	if (resource_size(iomem) != 0x100)
+	if (resource_size(iomem) < 0x100)
 		dev_err(&pdev->dev, "Invalid iomem size. You may "
 			"experience problems.\n");
 
Signature · 1 line
1.7.0