[<prev] [next>] [day] [month] [year] [list]
Message-ID: <BD79186B4FD85F4B8E60E381CAEE190901FB06E9@mi8nycmail19.Mi8.com>
Date: Fri, 4 Dec 2009 12:54:55 -0500
From: "H Hartley Sweeten" <hartleys@...ionengravers.com>
To: <linux-kernel@...r.kernel.org>
Cc: <wim@...ana.be>
Subject: txx9wdt.c: use resource_size()
Use resource_size().
Signed-off-by: H Hartley Sweeten <hsweeten@...ionengravers.com>
Cc: Wim Van Sebroeck <wim@...ana.be>
---
diff --git a/drivers/watchdog/txx9wdt.c b/drivers/watchdog/txx9wdt.c
index 6adab77..fab1ed9 100644
--- a/drivers/watchdog/txx9wdt.c
+++ b/drivers/watchdog/txx9wdt.c
@@ -215,11 +215,11 @@ static int __init txx9wdt_probe(struct platform_device *dev)
if (!res)
goto exit_busy;
if (!devm_request_mem_region(&dev->dev,
- res->start, res->end - res->start + 1,
+ res->start, resource_size(res),
"txx9wdt"))
goto exit_busy;
txx9wdt_reg = devm_ioremap(&dev->dev,
- res->start, res->end - res->start + 1);
+ res->start, resource_size(res));
if (!txx9wdt_reg)
goto exit_busy;
--
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