Commit d970a073 authored by Sascha Hauer's avatar Sascha Hauer

mxc nand: use resource_size()

Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent a4ad57f8
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment