summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-06-04 16:16:01 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-11-12 08:32:24 +0100
commitd970a0730ba5598b711d42bac287a17db5b6268a (patch)
tree3d1c035f4779ba63e84d64926150e8e18e672873 /drivers/mtd
parentmxc nand: remove dead code (diff)
downloadlinux-d970a0730ba5598b711d42bac287a17db5b6268a.tar.xz
linux-d970a0730ba5598b711d42bac287a17db5b6268a.zip
mxc nand: use resource_size()
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/mxc_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index 1ffb854f989e..8fcb33da8efc 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -865,7 +865,7 @@ static int __init mxcnd_probe(struct platform_device *pdev)
goto eres;
}
- host->regs = ioremap(res->start, res->end - res->start + 1);
+ host->regs = ioremap(res->start, resource_size(res));
if (!host->regs) {
err = -ENOMEM;
goto eres;