From 3bc6968adc7b1926f4582a33a33ad42d9b302ce0 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sun, 29 Aug 2010 17:08:41 +0200 Subject: 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 Patchwork: http://patchwork.linux-mips.org/patch/1562/ Signed-off-by: Ralf Baechle --- --- arch/mips/ar7/gpio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'arch/mips/ar7/gpio.c') diff --git a/arch/mips/ar7/gpio.c b/arch/mips/ar7/gpio.c index c32fbb57441..f84834229dc 100644 --- a/arch/mips/ar7/gpio.c +++ b/arch/mips/ar7/gpio.c @@ -107,7 +107,7 @@ int ar7_gpio_disable(unsigned gpio) } EXPORT_SYMBOL(ar7_gpio_disable); -static int __init ar7_gpio_init(void) +int __init ar7_gpio_init(void) { int ret; @@ -128,4 +128,3 @@ static int __init ar7_gpio_init(void) ar7_gpio_chip.chip.ngpio); return ret; } -arch_initcall(ar7_gpio_init); -- cgit v1.2.3-70-g09d2