summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/sh_flctl.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2009-12-14 16:59:27 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-12-31 20:47:26 +0000
commitcbd38a875fd890c3c2f196dd3370d90fd3ecb7f5 (patch)
tree323134975515af4265a08be53821f07b3955dd53 /drivers/mtd/nand/sh_flctl.c
parent448791abfb64f097e6d6c5f71df68fd072def5b3 (diff)
downloadop-kernel-dev-cbd38a875fd890c3c2f196dd3370d90fd3ecb7f5.zip
op-kernel-dev-cbd38a875fd890c3c2f196dd3370d90fd3ecb7f5.tar.gz
mtd: drivers/mtd/nand/sh_flctl.c: use resource_size()
Use resource_size(). Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand/sh_flctl.c')
-rw-r--r--drivers/mtd/nand/sh_flctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c
index 02bef21..4260ab7 100644
--- a/drivers/mtd/nand/sh_flctl.c
+++ b/drivers/mtd/nand/sh_flctl.c
@@ -797,7 +797,7 @@ static int __init flctl_probe(struct platform_device *pdev)
goto err;
}
- flctl->reg = ioremap(res->start, res->end - res->start + 1);
+ flctl->reg = ioremap(res->start, resource_size(res));
if (flctl->reg == NULL) {
printk(KERN_ERR "%s: ioremap error.\n", __func__);
ret = -ENOMEM;
OpenPOWER on IntegriCloud