summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/mpcore_wdt.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2009-12-04 18:24:04 +0100
committerWim Van Sebroeck <wim@iguana.be>2009-12-23 20:53:04 +0100
commitb782a563758ac963c794d9fbaaff494140c28fd6 (patch)
tree8e1ac3537fc1f6e0ab47e82892ae941e563fd8ab /drivers/watchdog/mpcore_wdt.c
parent[WATCHDOG] iTCO_wdt: add PCI ID for the Intel EP80579 (Tolapai) SoC (diff)
downloadlinux-b782a563758ac963c794d9fbaaff494140c28fd6.tar.xz
linux-b782a563758ac963c794d9fbaaff494140c28fd6.zip
[WATCHDOG] use resource_size()
Use resource_size(). Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Kevin Hilman <khilman@deeprootsystems.com> Cc: Kevin Hilman <khilman@ti.deeprootsystems.com> Cc: Ulrik Bech Hald <ubh@ti.com> Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Cc: Ming Lei <tom.leiming@gmail.com> Cc: Vincent Sanders <support@simtec.co.uk> Acked-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Wim Van Sebroeck <wim@iguana.be> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/watchdog/mpcore_wdt.c')
-rw-r--r--drivers/watchdog/mpcore_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/mpcore_wdt.c b/drivers/watchdog/mpcore_wdt.c
index 83fa34b214b4..a2dc07c2ed49 100644
--- a/drivers/watchdog/mpcore_wdt.c
+++ b/drivers/watchdog/mpcore_wdt.c
@@ -350,7 +350,7 @@ static int __devinit mpcore_wdt_probe(struct platform_device *dev)
ret = -ENXIO;
goto err_free;
}
- wdt->base = ioremap(res->start, res->end - res->start + 1);
+ wdt->base = ioremap(res->start, resource_size(res));
if (!wdt->base) {
ret = -ENOMEM;
goto err_free;