mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
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>
This commit is contained in:
parent
90f91b1298
commit
a8077d6573
1 changed files with 11 additions and 0 deletions
|
@ -246,7 +246,18 @@ static inline void bcma_core_pci_power_save(struct bcma_bus *bus, bool up)
|
||||||
}
|
}
|
||||||
#endif
|
#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_pcibios_map_irq(const struct pci_dev *dev);
|
||||||
extern int bcma_core_pci_plat_dev_init(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_ */
|
#endif /* LINUX_BCMA_DRIVER_PCI_H_ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue