leds: leds-cobalt-raq.c - use resource_size()
H Hartley Sweeten [Fri, 11 Dec 2009 23:13:40 +0000 (18:13 -0500)]
Use resource_size() for ioremap.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>

drivers/leds/leds-cobalt-raq.c

index defc212..438d483 100644 (file)
@@ -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;