Skip to content

Commit

Permalink
leds: leds-cobalt-qube.c: use resource_size()
Browse files Browse the repository at this point in the history
Use resource_size() for ioremap.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
  • Loading branch information
H Hartley Sweeten authored and Richard Purdie committed Dec 17, 2009
1 parent d3aad63 commit 3c0f6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/leds/leds-cobalt-qube.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 3c0f6e1

Please sign in to comment.