From: Sascha Hauer Date: Thu, 4 Jun 2009 14:16:01 +0000 (+0200) Subject: mxc nand: use resource_size() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d970a0730ba5598b711d42bac287a17db5b6268a;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git mxc nand: use resource_size() Signed-off-by: Sascha Hauer --- diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index 1ffb854f989e..8fcb33da8efc 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c @@ -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;