Commit d970a073 authored by Sascha Hauer's avatar Sascha Hauer
Browse files

mxc nand: use resource_size()

parent a4ad57f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;