mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 03:06:10 +00:00
leds: leds-cobalt-raq.c - use resource_size()
Use resource_size() for ioremap. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
ed4a10b47f
commit
d3aad6399a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue