From: H Hartley Sweeten Date: Tue, 5 Jan 2010 18:58:34 +0000 (+0100) Subject: mfd: Use resource_size() for t7l66xb X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c02e6a5ff43d24d73cf7830c2925e213fc72e037;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git mfd: Use resource_size() for t7l66xb Use resource_size() for ioremap. Signed-off-by: H Hartley Sweeten Cc: Ian Molton Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c index bcf4687d4af5..e0bbddd7aac2 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;