aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/ar7/gpio.c
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2010-08-29 11:08:41 -0400
committerRalf Baechle <ralf@linux-mips.org>2010-10-29 14:08:46 -0400
commit3bc6968adc7b1926f4582a33a33ad42d9b302ce0 (patch)
tree67d37a08a426247ee059391c54bd363e542a4ca8 /arch/mips/ar7/gpio.c
parent340fbb8b12dd24c83b1e8ff094b8e2c218144217 (diff)
MIPS: AR7: Initialize GPIO earlier
In order to detect the Titan variant, we must initialize GPIOs earlier since detection relies on some GPIO values to be set. Signed-off-by: Florian Fainelli <florian@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/1562/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org> ---
Diffstat (limited to 'arch/mips/ar7/gpio.c')
-rw-r--r--arch/mips/ar7/gpio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/mips/ar7/gpio.c b/arch/mips/ar7/gpio.c
index c32fbb57441a..f84834229dcf 100644
--- a/arch/mips/ar7/gpio.c
+++ b/arch/mips/ar7/gpio.c
@@ -107,7 +107,7 @@ int ar7_gpio_disable(unsigned gpio)
107} 107}
108EXPORT_SYMBOL(ar7_gpio_disable); 108EXPORT_SYMBOL(ar7_gpio_disable);
109 109
110static int __init ar7_gpio_init(void) 110int __init ar7_gpio_init(void)
111{ 111{
112 int ret; 112 int ret;
113 113
@@ -128,4 +128,3 @@ static int __init ar7_gpio_init(void)
128 ar7_gpio_chip.chip.ngpio); 128 ar7_gpio_chip.chip.ngpio);
129 return ret; 129 return ret;
130} 130}
131arch_initcall(ar7_gpio_init);