public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 005/203] sdhci-pltfm: do not print errors in case of an extended iomem size
@ 2010-05-26 21:41 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2010-05-26 21:41 UTC (permalink / raw)
  To: torvalds
  Cc: akpm, avorontsov, ben, david.vrabel, linux-mmc, pierre,
	richard.rojfors

From: Anton Vorontsov <avorontsov@ru.mvista.com>

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 <avorontsov@ru.mvista.com>
Acked-by: Richard Röjfors <richard.rojfors@pelagicore.com>
Cc: David Vrabel <david.vrabel@csr.com>
Cc: Pierre Ossman <pierre@ossman.eu>
Cc: Ben Dooks <ben@simtec.co.uk>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/mmc/host/sdhci-pltfm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
--- a/drivers/mmc/host/sdhci-pltfm.c~sdhci-pltfm-do-not-print-errors-in-case-of-an-extended-iomem-size
+++ a/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");
 
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-26 21:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-26 21:41 [patch 005/203] sdhci-pltfm: do not print errors in case of an extended iomem size akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox