mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
gpio/vr41xx: Convert use of struct resource to resource_size(ptr)
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>
This commit is contained in:
parent
b57e3c2692
commit
27810c5e7f
1 changed files with 1 additions and 1 deletions
|
@ -518,7 +518,7 @@ static int __devinit giu_probe(struct platform_device *pdev)
|
||||||
if (!res)
|
if (!res)
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
|
||||||
giu_base = ioremap(res->start, res->end - res->start + 1);
|
giu_base = ioremap(res->start, resource_size(res));
|
||||||
if (!giu_base)
|
if (!giu_base)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue