summaryrefslogtreecommitdiff
path: root/drivers/watchdog/bcm63xx_wdt.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-03-23 22:55:36 +0300
committerJiri Kosina <jkosina@suse.cz>2011-04-10 19:01:04 +0400
commit06794eaeb766989e450c1b459ae28da76e1f8719 (patch)
tree669739c584a5e404e06294d075b990378ef4bf4c /drivers/watchdog/bcm63xx_wdt.c
parentb0c3af5ef0d7b38eb1ba522becd47123ac9736d2 (diff)
downloadlinux-06794eaeb766989e450c1b459ae28da76e1f8719.tar.xz
treewide: Fix iomap resource size miscalculations
Convert off-by-1 r->end - r->start to resource_size(r) Signed-off-by: Joe Perches <joe@perches.com> Acked-by: David Brown <davidb@codeaurora.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Florian Fainelli <florian@openwrt.org> Acked-by: Wim Van Sebroeck <wim@iguana.be> Acked-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/watchdog/bcm63xx_wdt.c')
-rw-r--r--drivers/watchdog/bcm63xx_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/bcm63xx_wdt.c b/drivers/watchdog/bcm63xx_wdt.c
index 3c5045a206dd..5064e8317521 100644
--- a/drivers/watchdog/bcm63xx_wdt.c
+++ b/drivers/watchdog/bcm63xx_wdt.c
@@ -248,7 +248,7 @@ static int __devinit bcm63xx_wdt_probe(struct platform_device *pdev)
return -ENODEV;
}
- bcm63xx_wdt_device.regs = ioremap_nocache(r->start, r->end - r->start);
+ bcm63xx_wdt_device.regs = ioremap_nocache(r->start, resource_size(r));
if (!bcm63xx_wdt_device.regs) {
dev_err(&pdev->dev, "failed to remap I/O resources\n");
return -ENXIO;