Skip to content

Commit

Permalink
mxc nand: use resource_size()
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Sascha Hauer committed Nov 12, 2009
1 parent a4ad57f commit d970a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/mxc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d970a07

Please sign in to comment.