author | H Hartley Sweeten
<hartleys@visionengravers.com> 2009-11-25 02:06:26 UTC |
committer | Wim Van Sebroeck
<wim@iguana.be> 2009-12-02 10:10:27 UTC |
parent | 2127816366e0ffbc1426fa69e7b9b2bebd2e2288 |
drivers/watchdog/rc32434_wdt.c | +1 | -1 |
diff --git a/drivers/watchdog/rc32434_wdt.c b/drivers/watchdog/rc32434_wdt.c index f6cccc9df02..3764af11065 100644 --- a/drivers/watchdog/rc32434_wdt.c +++ b/drivers/watchdog/rc32434_wdt.c @@ -276,7 +276,7 @@ static int __devinit rc32434_wdt_probe(struct platform_device *pdev) return -ENODEV; } - wdt_reg = ioremap_nocache(r->start, r->end - r->start); + wdt_reg = ioremap_nocache(r->start, resource_size(r)); if (!wdt_reg) { printk(KERN_ERR PFX "failed to remap I/O resources\n"); return -ENXIO;