Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Stefan Hengelein and committed by
Ralf Baechle
44da7623 cd3d6438

+1 -1
+1 -1
arch/mips/ath79/mach-db120.c
··· 113 113 ath79_register_pci(); 114 114 } 115 115 #else 116 - static inline void db120_pci_init(void) {} 116 + static inline void db120_pci_init(u8 *eeprom) {} 117 117 #endif /* CONFIG_PCI */ 118 118 119 119 static void __init db120_setup(void)