Skip to content

Commit a8077d6

Browse files
rmileckiKalle Valo
authored andcommitted
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>
1 parent 90f91b1 commit a8077d6

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎include/linux/bcma/bcma_driver_pci.h‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,18 @@ static inline void bcma_core_pci_power_save(struct bcma_bus *bus, bool up)
246246
}
247247
#endif
248248

249+
#ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE
249250
extern int bcma_core_pci_pcibios_map_irq(const struct pci_dev *dev);
250251
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
251262

252263
#endif /* LINUX_BCMA_DRIVER_PCI_H_ */

0 commit comments

Comments
 (0)