linux-sg2042/arch/mips/alchemy/mtx-1
Florian Fainelli a1b021d399 MIPS: MTX-1: Request button GPIO before setting its direction
This patch fixes the following warning at boot time:
WARNING: at drivers/gpio/gpiolib.c:83 0x8021d5e0()
autorequest GPIO-207
Modules linked in:
Call Trace:[<8011e0ec>] 0x8011e0ec
[<80110a28>] 0x80110a28
[<80110a28>] 0x80110a28
[..snip..]

The current code does not request the GPIO and attempts
to set its direction, which is a violation of the GPIO API.
This patch also unhardcode the GPIO we request and use
the one we defined in the button driver.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2009-08-03 17:52:46 +01:00
..
Makefile MIPS: Alchemy: rename directory 2008-10-11 16:18:50 +01:00
board_setup.c MIPS: Alchemy: MTX-1: Use linux gpio api. 2009-06-17 11:06:28 +01:00
init.c MIPS: Alchemy: Change strict_strtol to strict_strtoul 2009-01-11 09:57:19 +00:00
irqmap.c MIPS: Alchemy: update core interrupt code. 2009-01-11 09:57:26 +00:00
platform.c MIPS: MTX-1: Request button GPIO before setting its direction 2009-08-03 17:52:46 +01:00