mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
mxc nand: use resource_size()
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
a4ad57f8b3
commit
d970a0730b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user