diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-02-17 16:59:48 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-02-19 12:01:34 -0500 |
commit | b991b590dc2e54447644d34226dc355b7b6e2337 (patch) | |
tree | 0085cc89b799cbb2701f0174e81e136c141ec450 /include/asm-mips/sni.h | |
parent | 40d7c1aa6153605b3eae23990d4c2d4e8f807cb0 (diff) |
[MIPS] RM: fix EISA=n compilation
This patch fixes the following build error with CONFIG_EISA=n caused by
commit 231a35d37293ab88d325a9cb94e5474c156282c0:
<-- snip -->
...
LD .tmp_vmlinux1
arch/mips/sni/built-in.o: In function `snirm_a20r_setup_devinit':
a20r.c:(.init.text+0x42c): undefined reference to `sni_eisa_root_init'
a20r.c:(.init.text+0x42c): relocation truncated to fit: R_MIPS_26 against `sni_eisa_root_init'
arch/mips/sni/built-in.o: In function `snirm_setup_devinit':
rm200.c:(.init.text+0x52c): undefined reference to `sni_eisa_root_init'
rm200.c:(.init.text+0x52c): relocation truncated to fit: R_MIPS_26 against `sni_eisa_root_init'
make[1]: *** [.tmp_vmlinux1] Error 1
<-- snip -->
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/sni.h')
-rw-r--r-- | include/asm-mips/sni.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-mips/sni.h b/include/asm-mips/sni.h index e716447e5e03..8c1eb02c6d16 100644 --- a/include/asm-mips/sni.h +++ b/include/asm-mips/sni.h | |||
@@ -228,7 +228,14 @@ extern void sni_pcimt_irq_init(void); | |||
228 | extern void sni_cpu_time_init(void); | 228 | extern void sni_cpu_time_init(void); |
229 | 229 | ||
230 | /* eisa init for RM200/400 */ | 230 | /* eisa init for RM200/400 */ |
231 | #ifdef CONFIG_EISA | ||
231 | extern int sni_eisa_root_init(void); | 232 | extern int sni_eisa_root_init(void); |
233 | #else | ||
234 | static inline int sni_eisa_root_init(void) | ||
235 | { | ||
236 | return 0; | ||
237 | } | ||
238 | #endif | ||
232 | 239 | ||
233 | /* common irq stuff */ | 240 | /* common irq stuff */ |
234 | extern void (*sni_hwint)(void); | 241 | extern void (*sni_hwint)(void); |