linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] atmel-mci.c: use resource size()
@ 2009-12-14 19:11 H Hartley Sweeten
  2009-12-14 19:35 ` Haavard Skinnemoen
  2010-08-27 19:09 ` [PATCH RESEND] " Chris Ball
  0 siblings, 2 replies; 5+ messages in thread
From: H Hartley Sweeten @ 2009-12-14 19:11 UTC (permalink / raw)
  To: kernel list, linux-mmc; +Cc: haavard.skinnemoen

Use resource_size().

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>

---

diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
index fc25586..150242f 100644
--- a/drivers/mmc/host/atmel-mci.c
+++ b/drivers/mmc/host/atmel-mci.c
@@ -1628,7 +1628,7 @@ static int __init atmci_probe(struct platform_device *pdev)
 	}
 
 	ret = -ENOMEM;
-	host->regs = ioremap(regs->start, regs->end - regs->start + 1);
+	host->regs = ioremap(regs->start, resource_size(regs));
 	if (!host->regs)
 		goto err_ioremap;
  

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-30  8:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-14 19:11 [PATCH] atmel-mci.c: use resource size() H Hartley Sweeten
2009-12-14 19:35 ` Haavard Skinnemoen
2010-08-27 19:09 ` [PATCH RESEND] " Chris Ball
2010-08-27 19:25   ` Matt Fleming
2010-08-30  7:47   ` Nicolas Ferre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).