From: Rafał Miłecki Date: Sun, 7 Jun 2015 11:15:30 +0000 (+0200) Subject: bcma: make calls to PCI hostmode functions config-safe X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a8077d6573530a91d5674a28cdedbed39c391ff0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git bcma: make calls to PCI hostmode functions config-safe Signed-off-by: Rafał Miłecki Signed-off-by: Kalle Valo --- diff --git a/include/linux/bcma/bcma_driver_pci.h b/include/linux/bcma/bcma_driver_pci.h index 5ba6918ca20b..9657f11d48a7 100644 --- a/include/linux/bcma/bcma_driver_pci.h +++ b/include/linux/bcma/bcma_driver_pci.h @@ -246,7 +246,18 @@ static inline void bcma_core_pci_power_save(struct bcma_bus *bus, bool up) } #endif +#ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE extern int bcma_core_pci_pcibios_map_irq(const struct pci_dev *dev); extern int bcma_core_pci_plat_dev_init(struct pci_dev *dev); +#else +static inline int bcma_core_pci_pcibios_map_irq(const struct pci_dev *dev) +{ + return -ENOTSUPP; +} +static inline int bcma_core_pci_plat_dev_init(struct pci_dev *dev) +{ + return -ENOTSUPP; +} +#endif #endif /* LINUX_BCMA_DRIVER_PCI_H_ */