diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-03-05 12:25:11 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-03-13 10:25:50 -0400 |
commit | 982a40f5c0bb03368989a6b1ae833b474854e931 (patch) | |
tree | ac48e5179974d2c93d5e8317ec571bcf7fdf0ded /include/linux/bcma | |
parent | 702131e2a393b45174be326f1dbe20b658b4f157 (diff) |
bcma: allow disabling (not building) PCI driver
It isn't required for bcma bus on SoCs, so provide some empty functions
and allow disabling it.
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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/bcma/bcma_driver_pci.h b/include/linux/bcma/bcma_driver_pci.h index 3a468687c170..5ba6918ca20b 100644 --- a/include/linux/bcma/bcma_driver_pci.h +++ b/include/linux/bcma/bcma_driver_pci.h | |||
@@ -238,7 +238,13 @@ struct bcma_drv_pci { | |||
238 | #define pcicore_write16(pc, offset, val) bcma_write16((pc)->core, offset, val) | 238 | #define pcicore_write16(pc, offset, val) bcma_write16((pc)->core, offset, val) |
239 | #define pcicore_write32(pc, offset, val) bcma_write32((pc)->core, offset, val) | 239 | #define pcicore_write32(pc, offset, val) bcma_write32((pc)->core, offset, val) |
240 | 240 | ||
241 | #ifdef CONFIG_BCMA_DRIVER_PCI | ||
241 | extern void bcma_core_pci_power_save(struct bcma_bus *bus, bool up); | 242 | extern void bcma_core_pci_power_save(struct bcma_bus *bus, bool up); |
243 | #else | ||
244 | static inline void bcma_core_pci_power_save(struct bcma_bus *bus, bool up) | ||
245 | { | ||
246 | } | ||
247 | #endif | ||
242 | 248 | ||
243 | extern int bcma_core_pci_pcibios_map_irq(const struct pci_dev *dev); | 249 | extern int bcma_core_pci_pcibios_map_irq(const struct pci_dev *dev); |
244 | extern int bcma_core_pci_plat_dev_init(struct pci_dev *dev); | 250 | extern int bcma_core_pci_plat_dev_init(struct pci_dev *dev); |