]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
leds: leds-cobalt-raq.c - use resource_size()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 11 Dec 2009 23:13:40 +0000 (18:13 -0500)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 17 Dec 2009 11:16:23 +0000 (11:16 +0000)
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 defc212105f3e4b12c216fadebbd82d1b9ab31ec..438d48384636f2d188e06a1ee648c41c190ce00c 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;