From: H Hartley Sweeten Date: Fri, 11 Dec 2009 23:13:40 +0000 (-0500) Subject: leds: leds-cobalt-raq.c - use resource_size() X-Git-Tag: Ubuntu-5.2.0-15.16~26644^2~7 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=d3aad6399a240300534d83ffdacfc40e6ed4fa73;p=mirror_ubuntu-eoan-kernel.git leds: leds-cobalt-raq.c - use resource_size() Use resource_size() for ioremap. Signed-off-by: H Hartley Sweeten Signed-off-by: Richard Purdie --- diff --git a/drivers/leds/leds-cobalt-raq.c b/drivers/leds/leds-cobalt-raq.c index defc212105f3..438d48384636 100644 --- a/drivers/leds/leds-cobalt-raq.c +++ b/drivers/leds/leds-cobalt-raq.c @@ -84,7 +84,7 @@ static int __devinit cobalt_raq_led_probe(struct platform_device *pdev) if (!res) return -EBUSY; - led_port = ioremap(res->start, res->end - res->start + 1); + led_port = ioremap(res->start, resource_size(res)); if (!led_port) return -ENOMEM;