summaryrefslogtreecommitdiff
path: root/drivers/bcma/bcma_private.h
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-01-25 14:02:48 +0100
committerKalle Valo <kvalo@codeaurora.org>2015-01-29 10:52:59 +0200
commitae8ce289e55e6f9911016f73ac85dcb2e0c0c9c1 (patch)
tree90909323290037522932a4ea9eb6fa7053878997 /drivers/bcma/bcma_private.h
parent3c313161353ad527de1a6ecde0f0d41700858fd6 (diff)
bcma: add empty PCIe hostmode functions if support is disabled
This allows us to drop some #ifdef magic (mess). Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/bcma/bcma_private.h')
-rw-r--r--drivers/bcma/bcma_private.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/bcma/bcma_private.h b/drivers/bcma/bcma_private.h
index 3f314c98d089..ac6c5fca906d 100644
--- a/drivers/bcma/bcma_private.h
+++ b/drivers/bcma/bcma_private.h
@@ -107,6 +107,14 @@ extern int bcma_chipco_watchdog_register(struct bcma_drv_cc *cc);
#ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE
bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc);
void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc);
+#else
+static inline bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc)
+{
+ return false;
+}
+static inline void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc)
+{
+}
#endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */
#ifdef CONFIG_BCMA_DRIVER_GPIO