aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/ar7/gpio.c3
-rw-r--r--arch/mips/ar7/prom.c2
-rw-r--r--arch/mips/include/asm/mach-ar7/ar7.h2
3 files changed, 5 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);
diff --git a/arch/mips/ar7/prom.c b/arch/mips/ar7/prom.c
index 52385790e5c1..23818d299127 100644
--- a/arch/mips/ar7/prom.c
+++ b/arch/mips/ar7/prom.c
@@ -246,6 +246,8 @@ void __init prom_init(void)
246 ar7_init_cmdline(fw_arg0, (char **)fw_arg1); 246 ar7_init_cmdline(fw_arg0, (char **)fw_arg1);
247 ar7_init_env((struct env_var *)fw_arg2); 247 ar7_init_env((struct env_var *)fw_arg2);
248 console_config(); 248 console_config();
249
250 ar7_gpio_init();
249} 251}
250 252
251#define PORT(offset) (KSEG1ADDR(AR7_REGS_UART0 + (offset * 4))) 253#define PORT(offset) (KSEG1ADDR(AR7_REGS_UART0 + (offset * 4)))
diff --git a/arch/mips/include/asm/mach-ar7/ar7.h b/arch/mips/include/asm/mach-ar7/ar7.h
index 483ffea9ecb1..ddb413e81d06 100644
--- a/arch/mips/include/asm/mach-ar7/ar7.h
+++ b/arch/mips/include/asm/mach-ar7/ar7.h
@@ -161,4 +161,6 @@ static inline void ar7_device_off(u32 bit)
161 msleep(20); 161 msleep(20);
162} 162}
163 163
164int __init ar7_gpio_init(void);
165
164#endif /* __AR7_H__ */ 166#endif /* __AR7_H__ */