Commit d3aad639 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Richard Purdie

leds: leds-cobalt-raq.c - use resource_size()

Use resource_size() for ioremap.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarRichard Purdie <rpurdie@linux.intel.com>
parent ed4a10b4
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment