Skip to contentSkip to conversation

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

PATCH New [email protected] 1 participant 1 message May 26, 2010

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

PATCH 5/203 sdhci-pltfm: do not print errors in case of an extended iomem size

From: Anton Vorontsov <[email protected]>

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 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/sdhci-pltfm.c renamed from drivers/mmc/host/sdhci-pltfm.c~sdhci-pltfm-do-not-print-errors-in-case-of-an-extended-iomem-size +1 -1
diff -puN drivers/mmc/host/sdhci-pltfm.c~sdhci-pltfm-do-not-print-errors-in-case-of-an-extended-iomem-size drivers/mmc/host/sdhci-pltfm.c
@@ -61,7 +61,7 @@ static int __devinit sdhci_pltfm_probe(s
 		goto err;
 	}
 
-	if (resource_size(iomem) != 0x100)
+	if (resource_size(iomem) < 0x100)
 		dev_err(&pdev->dev, "Invalid iomem size. You may "
 			"experience problems.\n");
 

_