aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/bcm63xx_wdt.c
diff options
context:
space:
mode:
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)
248 return -ENODEV; 248 return -ENODEV;
249 } 249 }
250 250
251 bcm63xx_wdt_device.regs = ioremap_nocache(r->start, r->end - r->start); 251 bcm63xx_wdt_device.regs = ioremap_nocache(r->start, resource_size(r));
252 if (!bcm63xx_wdt_device.regs) { 252 if (!bcm63xx_wdt_device.regs) {
253 dev_err(&pdev->dev, "failed to remap I/O resources\n"); 253 dev_err(&pdev->dev, "failed to remap I/O resources\n");
254 return -ENXIO; 254 return -ENXIO;