mxc nand: use resource_size()

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2009-06-04 16:16:01 +02:00
parent a4ad57f8b3
commit d970a0730b

View file

@ -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;