From: Anton Vorontsov Date: Wed, 26 May 2010 21:41:56 +0000 (-0700) Subject: sdhci-pltfm: do not print errors in case of an extended iomem size X-Git-Tag: v2.6.35-rc1~244 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e632c45ad040a54058db577981cdc3f4b316da55;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git 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. Signed-off-by: Anton Vorontsov Acked-by: Richard Röjfors Cc: David Vrabel Cc: Pierre Ossman Cc: Ben Dooks Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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");