aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2010-01-05 13:58:34 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2010-03-07 16:16:53 -0500
commitc02e6a5ff43d24d73cf7830c2925e213fc72e037 (patch)
treefd14b5042769a6823b7b9ca108aebfc97e75b0d6
parent311e54c07e784fe63d421f724dcc597d1f82ccad (diff)
mfd: Use resource_size() for t7l66xb
Use resource_size() for ioremap. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Molton <ian@mnementh.co.uk> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r--drivers/mfd/t7l66xb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c
index bcf4687d4af..e0bbddd7aac 100644
--- a/drivers/mfd/t7l66xb.c
+++ b/drivers/mfd/t7l66xb.c
@@ -360,7 +360,7 @@ static int t7l66xb_probe(struct platform_device *dev)
360 if (ret) 360 if (ret)
361 goto err_request_scr; 361 goto err_request_scr;
362 362
363 t7l66xb->scr = ioremap(rscr->start, rscr->end - rscr->start + 1); 363 t7l66xb->scr = ioremap(rscr->start, resource_size(rscr));
364 if (!t7l66xb->scr) { 364 if (!t7l66xb->scr) {
365 ret = -ENOMEM; 365 ret = -ENOMEM;
366 goto err_ioremap; 366 goto err_ioremap;