[<prev] [next>] [day] [month] [year] [list]
Message-ID: <BD79186B4FD85F4B8E60E381CAEE190901FB06E2@mi8nycmail19.Mi8.com>
Date: Fri, 4 Dec 2009 12:48:30 -0500
From: "H Hartley Sweeten" <hartleys@...ionengravers.com>
To: <linux-kernel@...r.kernel.org>
Cc: <wim@...ana.be>, <hmh@....eng.br>, <tom.leiming@...il.com>
Subject: rm9k_wdt.c: use resource_size()
Use resource_size().
Signed-off-by: H Hartley Sweeten <hsweeten@...ionengravers.com>
Cc: Wim Van Sebroeck <wim@...ana.be>
Cc: Henrique de Moraes Holschuh <hmh@....eng.br>
Cc: Ming Lei <tom.leiming@...il.com>
---
diff --git a/drivers/watchdog/rm9k_wdt.c b/drivers/watchdog/rm9k_wdt.c
index bb66958..198f748 100644
--- a/drivers/watchdog/rm9k_wdt.c
+++ b/drivers/watchdog/rm9k_wdt.c
@@ -360,7 +360,7 @@ static int __devinit wdt_gpi_probe(struct platform_device *pdv)
if (unlikely(!rr || !ri || !rc))
return -ENXIO;
- wd_regs = ioremap_nocache(rr->start, rr->end + 1 - rr->start);
+ wd_regs = ioremap_nocache(rr->start, resource_size(rr));
if (unlikely(!wd_regs))
return -ENOMEM;
wd_irq = ri->start;
--
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