Skip to content

Commit

Permalink
MIPS: RB532: Fix iomap resource size miscalculation.
Browse files Browse the repository at this point in the history
This is the MIPS portion of Joe Perches <joe@perches.com>'s
https://patchwork.linux-mips.org/patch/2172/ which seems to have been
lost in time and space.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
ralfbaechle committed May 18, 2011
1 parent c1d10d1 commit 3436830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/rb532/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ int __init rb532_gpio_init(void)
struct resource *r;

r = rb532_gpio_reg0_res;
rb532_gpio_chip->regbase = ioremap_nocache(r->start, r->end - r->start);
rb532_gpio_chip->regbase = ioremap_nocache(r->start, resource_size(r));

if (!rb532_gpio_chip->regbase) {
printk(KERN_ERR "rb532: cannot remap GPIO register 0\n");
Expand Down

0 comments on commit 3436830

Please sign in to comment.