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

leds: leds-cobalt-qube.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 d3aad639
...@@ -43,7 +43,7 @@ static int __devinit cobalt_qube_led_probe(struct platform_device *pdev) ...@@ -43,7 +43,7 @@ static int __devinit cobalt_qube_led_probe(struct platform_device *pdev)
if (!res) if (!res)
return -EBUSY; return -EBUSY;
led_port = ioremap(res->start, res->end - res->start + 1); led_port = ioremap(res->start, resource_size(res));
if (!led_port) if (!led_port)
return -ENOMEM; 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