Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;