mtd: fls_upm.c: use resource_size()
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Thu Dec 31 15:59:02 EST 2009
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=58e6a84dfbd6f125b69e8b105c2cdbf22f97d5de
Commit: 58e6a84dfbd6f125b69e8b105c2cdbf22f97d5de
Parent: 8a19b5581862650ab1735d4699491ac92bd2e212
Author: H Hartley Sweeten <hartleys at visionengravers.com>
AuthorDate: Mon Dec 14 16:22:49 2009 -0500
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Thu Dec 31 19:54:24 2009 +0000
mtd: fls_upm.c: use resource_size()
Use resource_size().
Signed-off-by: H Hartley Sweeten <hsweeten at visionengravers.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/nand/fsl_upm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/fsl_upm.c b/drivers/mtd/nand/fsl_upm.c
index 071a60c..ab06a5b 100644
--- a/drivers/mtd/nand/fsl_upm.c
+++ b/drivers/mtd/nand/fsl_upm.c
@@ -302,7 +302,7 @@ static int __devinit fun_probe(struct of_device *ofdev,
FSL_UPM_WAIT_WRITE_BYTE;
fun->io_base = devm_ioremap_nocache(&ofdev->dev, io_res.start,
- io_res.end - io_res.start + 1);
+ resource_size(&io_res));
if (!fun->io_base) {
ret = -ENOMEM;
goto err2;
More information about the linux-mtd-cvs
mailing list