]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
leds: leds-cobalt-qube.c: use resource_size()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 11 Dec 2009 21:50:58 +0000 (16:50 -0500)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 17 Dec 2009 11:18:15 +0000 (11:18 +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-qube.c

index 8816806accd24a380c3877785f3bd71e5ddbbbf7..de1975388ec323c9cf0a4f28b2bca2ba8ebcd1e3 100644 (file)
@@ -43,7 +43,7 @@ static int __devinit cobalt_qube_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;