提交 d970a073 编写于 作者: S Sascha Hauer

mxc nand: use resource_size()

Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册