Commit 27810c5e authored by Joe Perches's avatar Joe Perches Committed by Grant Likely

gpio/vr41xx: Convert use of struct resource to resource_size(ptr)

Remove miscellaneous use of direct calculation by using resource_size().
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent b57e3c26
......@@ -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;
......
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