diff options
author | Stefan Hengelein <stefan.hengelein@fau.de> | 2014-10-20 09:11:39 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-10-22 17:16:59 -0400 |
commit | 44da7623e307bba3eefd7eaf11e605e15a923d72 (patch) | |
tree | e7e7ce37629a4b5e0c3d09218938b349c303edd5 /arch | |
parent | cd3d6438b4cdbe39fe8daf1a0abeebabcf9521d5 (diff) |
MIPS: ath79: Fix compilation error when CONFIG_PCI is disabled
When CONFIG_PCI is disabled, 'db120_pci_init()' had a different
signature than when was enabled. Therefore, compilation failed when
CONFIG_PCI was not present.
arch/mips/ath79/mach-db120.c:132: error: too many arguments to function 'db120_pci_init'
This error was found with vampyr.
Signed-off-by: Stefan Hengelein <stefan.hengelein@fau.de>
Reviewed-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: geert@linux-m68k.org
Patchwork: https://patchwork.linux-mips.org/patch/8119/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/ath79/mach-db120.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/ath79/mach-db120.c b/arch/mips/ath79/mach-db120.c index 4d661a1d2dae..9423f5aed287 100644 --- a/arch/mips/ath79/mach-db120.c +++ b/arch/mips/ath79/mach-db120.c | |||
@@ -113,7 +113,7 @@ static void __init db120_pci_init(u8 *eeprom) | |||
113 | ath79_register_pci(); | 113 | ath79_register_pci(); |
114 | } | 114 | } |
115 | #else | 115 | #else |
116 | static inline void db120_pci_init(void) {} | 116 | static inline void db120_pci_init(u8 *eeprom) {} |
117 | #endif /* CONFIG_PCI */ | 117 | #endif /* CONFIG_PCI */ |
118 | 118 | ||
119 | static void __init db120_setup(void) | 119 | static void __init db120_setup(void) |