All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] t7l66xb.c: use resource_size()
@ 2009-12-12  0:07 H Hartley Sweeten
  2010-01-05 19:03 ` Samuel Ortiz
  0 siblings, 1 reply; 2+ messages in thread
From: H Hartley Sweeten @ 2009-12-12  0:07 UTC (permalink / raw)
  To: kernel list; +Cc: ian, sameo

Use resource_size() for ioremap.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Molton <ian@mnementh.co.uk>
Cc: Samuel Ortiz <sameo@linux.intel.com>

---

diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c
index 0a255c1..20bbd1d 100644
--- a/drivers/mfd/t7l66xb.c
+++ b/drivers/mfd/t7l66xb.c
@@ -341,7 +341,7 @@ static int t7l66xb_probe(struct platform_device *dev)
 	if (ret)
 		goto err_request_scr;
 
-	t7l66xb->scr = ioremap(rscr->start, rscr->end - rscr->start + 1);
+	t7l66xb->scr = ioremap(rscr->start, resource_size(rscr));
 	if (!t7l66xb->scr) {
 		ret = -ENOMEM;
 		goto err_ioremap; 

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

end of thread, other threads:[~2010-01-05 19:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-12  0:07 [PATCH] t7l66xb.c: use resource_size() H Hartley Sweeten
2010-01-05 19:03 ` Samuel Ortiz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.