diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-06-07 07:15:30 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-06-08 07:33:26 -0400 |
commit | a8077d6573530a91d5674a28cdedbed39c391ff0 (patch) | |
tree | 9dbfa2587435b1ba184f6b89d2f65f0b60295ea2 /include/linux/bcma | |
parent | 90f91b129810c3f169e443252be30ed7c0130326 (diff) |
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>
Diffstat (limited to 'include/linux/bcma')
-rw-r--r-- | include/linux/bcma/bcma_driver_pci.h | 11 |
1 files changed, 11 insertions, 0 deletions
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) | |||
246 | } | 246 | } |
247 | #endif | 247 | #endif |
248 | 248 | ||
249 | #ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE | ||
249 | extern int bcma_core_pci_pcibios_map_irq(const struct pci_dev *dev); | 250 | extern int bcma_core_pci_pcibios_map_irq(const struct pci_dev *dev); |
250 | extern int bcma_core_pci_plat_dev_init(struct pci_dev *dev); | 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 | #endif /* LINUX_BCMA_DRIVER_PCI_H_ */ | 263 | #endif /* LINUX_BCMA_DRIVER_PCI_H_ */ |