]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
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)
commit1b432840d0a4740020e29ae7a00717ef8f44954b
tree64374760eb188224bba02321bba49b99eeff4dc6
parent9e86786a4b17ad186f456dc6ac0508a17556731b
MIPS: RB532: GPIO register offsets are relative to GPIOBASE

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>
arch/mips/include/asm/mach-rc32434/rb.h
arch/mips/rb532/devices.c