[<prev] [next>] [day] [month] [year] [list]
Message-ID: <BD79186B4FD85F4B8E60E381CAEE19090200EA4A@mi8nycmail19.Mi8.com>
Date: Mon, 14 Dec 2009 16:18:15 -0500
From: "H Hartley Sweeten" <hartleys@...ionengravers.com>
To: "kernel list" <linux-kernel@...r.kernel.org>,
<linux-mtd@...ts.infradead.org>
Cc: "David Woodhouse" <dwmw2@...radead.org>
Subject: [PATCH] excite_nandflash.c: user resource_size()
Use resource_size().
Signed-off-by: H Hartley Sweeten <hsweeten@...ionengravers.com>
David Woodhouse <dwmw2@...radead.org>
---
diff --git a/drivers/mtd/nand/excite_nandflash.c b/drivers/mtd/nand/excite_nandflash.c
index 72446fb..bd323e4 100644
--- a/drivers/mtd/nand/excite_nandflash.c
+++ b/drivers/mtd/nand/excite_nandflash.c
@@ -79,7 +79,7 @@ excite_nand_map_regs(struct platform_device *d, const char *basename)
excite_nand_get_resource(d, IORESOURCE_MEM, basename);
if (r)
- result = ioremap_nocache(r->start, r->end + 1 - r->start);
+ result = ioremap_nocache(r->start, resource_size(r));
return result;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists