Commit 3436830a authored by Ralf Baechle's avatar Ralf Baechle

MIPS: RB532: Fix iomap resource size miscalculation.

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: default avatarRalf Baechle <ralf@linux-mips.org>
parent c1d10d18
...@@ -185,7 +185,7 @@ int __init rb532_gpio_init(void) ...@@ -185,7 +185,7 @@ int __init rb532_gpio_init(void)
struct resource *r; struct resource *r;
r = rb532_gpio_reg0_res; 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) { if (!rb532_gpio_chip->regbase) {
printk(KERN_ERR "rb532: cannot remap GPIO register 0\n"); printk(KERN_ERR "rb532: cannot remap GPIO register 0\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment