diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-06-04 10:16:01 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-11-12 02:32:24 -0500 |
commit | d970a0730ba5598b711d42bac287a17db5b6268a (patch) | |
tree | 3d1c035f4779ba63e84d64926150e8e18e672873 | |
parent | a4ad57f8b320c9d89b7693be82e47347425db918 (diff) |
mxc nand: use resource_size()
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/mtd/nand/mxc_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
865 | goto eres; | 865 | goto eres; |
866 | } | 866 | } |
867 | 867 | ||
868 | host->regs = ioremap(res->start, res->end - res->start + 1); | 868 | host->regs = ioremap(res->start, resource_size(res)); |
869 | if (!host->regs) { | 869 | if (!host->regs) { |
870 | err = -ENOMEM; | 870 | err = -ENOMEM; |
871 | goto eres; | 871 | goto eres; |