From: H Hartley Sweeten Date: Fri, 11 Dec 2009 21:50:58 +0000 (-0500) Subject: leds: leds-cobalt-qube.c: use resource_size() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3c0f6e1eddeddd95ed04d4a7f0e55ab0aa99adf9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git leds: leds-cobalt-qube.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-qube.c b/drivers/leds/leds-cobalt-qube.c index 8816806accd2..de1975388ec3 100644 --- a/drivers/leds/leds-cobalt-qube.c +++ b/drivers/leds/leds-cobalt-qube.c @@ -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;