Skip to content

Commit

Permalink
MIPS: AR7: Fix GPIO register size for Titan variant.
Browse files Browse the repository at this point in the history
The 'size' variable contains the correct register size for both AR7
and Titan, but we never used it to ioremap the correct register size.
This problem only shows up on Titan.

[ralf@linux-mips.org: Fixed the fix.  The original patch as in patchwork
recognizes the problem correctly then fails to fix it ...]

Reported-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Patchwork: https://patchwork.linux-mips.org/patch/2380/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Florian Fainelli authored and Ralf Baechle committed May 18, 2011
1 parent 10423c9 commit 3e9957b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/mips/ar7/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,7 @@ int __init ar7_gpio_init(void)
size = 0x1f;
}

gpch->regs = ioremap_nocache(AR7_REGS_GPIO,
AR7_REGS_GPIO + 0x10);

gpch->regs = ioremap_nocache(AR7_REGS_GPIO, size);
if (!gpch->regs) {
printk(KERN_ERR "%s: failed to ioremap regs\n",
gpch->chip.label);
Expand Down

0 comments on commit 3e9957b

Please sign in to comment.