aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2010-01-05 19:58:34 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2010-03-07 22:16:53 +0100
commitc02e6a5ff43d24d73cf7830c2925e213fc72e037 (patch)
treefd14b5042769a6823b7b9ca108aebfc97e75b0d6 /drivers/mfd
parent311e54c07e784fe63d421f724dcc597d1f82ccad (diff)
downloadkernel_samsung_tuna-c02e6a5ff43d24d73cf7830c2925e213fc72e037.zip
kernel_samsung_tuna-c02e6a5ff43d24d73cf7830c2925e213fc72e037.tar.gz
kernel_samsung_tuna-c02e6a5ff43d24d73cf7830c2925e213fc72e037.tar.bz2
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>
Diffstat (limited to 'drivers/mfd')
-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 bcf4687..e0bbddd 100644
--- a/drivers/mfd/t7l66xb.c
+++ b/drivers/mfd/t7l66xb.c
@@ -360,7 +360,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;