summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-vr41xx.c
diff options
context:
space:
mode:
authorJoe Perches2011-06-11 03:16:15 +0200
committerGrant Likely2011-06-11 07:37:10 +0200
commit27810c5e7f8f2ddf036c16b5e40fd22abdc041f9 (patch)
tree94845a97ebcecff55dbcdafb27c8e928ae8d3a66 /drivers/gpio/gpio-vr41xx.c
parentgpio/ep93xx: Add missing EP93XX_GPIO_PHYS_BASE define (diff)
downloadkernel-qcow2-linux-27810c5e7f8f2ddf036c16b5e40fd22abdc041f9.tar.gz
kernel-qcow2-linux-27810c5e7f8f2ddf036c16b5e40fd22abdc041f9.tar.xz
kernel-qcow2-linux-27810c5e7f8f2ddf036c16b5e40fd22abdc041f9.zip
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>
Diffstat (limited to 'drivers/gpio/gpio-vr41xx.c')
-rw-r--r--drivers/gpio/gpio-vr41xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-vr41xx.c b/drivers/gpio/gpio-vr41xx.c
index a365be040b36..98723cb9ac68 100644
--- a/drivers/gpio/gpio-vr41xx.c
+++ b/drivers/gpio/gpio-vr41xx.c
@@ -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;