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

bcma: make calls to PCI hostmode functions config-safe

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Rafał Miłecki and committed by
Kalle Valo
a8077d65 90f91b12

+11
+11
include/linux/bcma/bcma_driver_pci.h
··· 246 246 } 247 247 #endif 248 248 249 + #ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE 249 250 extern int bcma_core_pci_pcibios_map_irq(const struct pci_dev *dev); 250 251 extern int bcma_core_pci_plat_dev_init(struct pci_dev *dev); 252 + #else 253 + static inline int bcma_core_pci_pcibios_map_irq(const struct pci_dev *dev) 254 + { 255 + return -ENOTSUPP; 256 + } 257 + static inline int bcma_core_pci_plat_dev_init(struct pci_dev *dev) 258 + { 259 + return -ENOTSUPP; 260 + } 261 + #endif 251 262 252 263 #endif /* LINUX_BCMA_DRIVER_PCI_H_ */