Prev: fsnotify/vfsmount: add fsnotify fields to struct vfsmount
Next: [PATCH 28/31] Constify struct super_operations for 2.6.32 v1
From: H Hartley Sweeten on 4 Dec 2009 12:40 Use resource_size(). Signed-off-by: H Hartley Sweeten <hsweeten(a)visionengravers.com> Cc: Wim Van Sebroeck <wim(a)iguana.be> --- diff --git a/drivers/watchdog/mpcore_wdt.c b/drivers/watchdog/mpcore_wdt.c index 83fa34b..a2dc07c 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; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |