projects/linux·commit e632c45a

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

e632c45a · Anton Vorontsov <[email protected]> · 2010-05-26 14:41:56 -07:00

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

Signed-off-by: Anton Vorontsov <[email protected]>
Acked-by: Richard Röjfors <[email protected]>
Cc: David Vrabel <[email protected]>
Cc: Pierre Ossman <[email protected]>
Cc: Ben Dooks <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
e632c45ad040a54058db577981cdc3f4b316da55
Parents
a7626b7a

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/mmc/host/sdhci-pltfm.cmodified+1−1View file

drivers/mmc/host/sdhci-pltfm.c

View file
diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
index 217b911..b6ee0d7 100644
--- a/drivers/mmc/host/sdhci-pltfm.c
+++ b/drivers/mmc/host/sdhci-pltfm.c
@@ -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");