MIPS: RB532: GPIO register offsets are relative to GPIOBASE
authorFlorian Fainelli <florian@openwrt.org>
Fri, 31 Oct 2008 13:24:29 +0000 (14:24 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 20 Nov 2008 19:42:32 +0000 (19:42 +0000)
This patch fixes the wrong use of GPIO register offsets
in devices.c. To avoid further problems, use gpio_get_value
to return the NAND status instead of our own expanded code.

Also define the zero offset of the alternate function register to allow
consistent access.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Phil Sutter <n0-1@freewrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

No differences found