Skip to content

Commit

Permalink
gpio/vr41xx: Convert use of struct resource to resource_size(ptr)
Browse files Browse the repository at this point in the history
Remove miscellaneous use of direct calculation by using resource_size().

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
Joe Perches authored and Grant Likely committed Jun 11, 2011
1 parent b57e3c2 commit 27810c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-vr41xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ static int __devinit giu_probe(struct platform_device *pdev)
if (!res)
return -EBUSY;

giu_base = ioremap(res->start, res->end - res->start + 1);
giu_base = ioremap(res->start, resource_size(res));
if (!giu_base)
return -ENOMEM;

Expand Down

0 comments on commit 27810c5

Please sign in to comment.