diff options
Diffstat (limited to 'drivers/gpio/gpio-vr41xx.c')
-rw-r--r-- | drivers/gpio/gpio-vr41xx.c | 2 |
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) | |||
518 | if (!res) | 518 | if (!res) |
519 | return -EBUSY; | 519 | return -EBUSY; |
520 | 520 | ||
521 | giu_base = ioremap(res->start, res->end - res->start + 1); | 521 | giu_base = ioremap(res->start, resource_size(res)); |
522 | if (!giu_base) | 522 | if (!giu_base) |
523 | return -ENOMEM; | 523 | return -ENOMEM; |
524 | 524 | ||