aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bcma
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-03-04 06:14:41 -0500
committerKalle Valo <kvalo@codeaurora.org>2015-03-05 07:11:40 -0500
commitc32ec2a11321978c34296d9a6bd5b0c31a2eb182 (patch)
tree10ab640065f820410b6c0764e9e00301cad075bd /include/linux/bcma
parentb09f5ec18b16b82f4db8a735e453332db7514275 (diff)
bcma: make bcma_host_pci_(up|down) calls safe for every config
We were providing declarations but actual code was compiled only with CONFIG_BCMA_HOST_PCI set. This could result in: ERROR: "bcma_host_pci_down" [drivers/net/wireless/brcm80211/brcmsmac/brcmsmac.ko] undefined! ERROR: "bcma_host_pci_up" [drivers/net/wireless/brcm80211/brcmsmac/brcmsmac.ko] undefined! ERROR: "bcma_host_pci_down" [drivers/net/wireless/b43/b43.ko] undefined! ERROR: "bcma_host_pci_up" [drivers/net/wireless/b43/b43.ko] undefined! Reported-by: Arnd Bergmann <arnd@arndb.de> 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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/bcma/bcma.h b/include/linux/bcma/bcma.h
index 037620b3f113..44057b45ed32 100644
--- a/include/linux/bcma/bcma.h
+++ b/include/linux/bcma/bcma.h
@@ -434,8 +434,17 @@ static inline struct bcma_device *bcma_find_core(struct bcma_bus *bus,
434 return bcma_find_core_unit(bus, coreid, 0); 434 return bcma_find_core_unit(bus, coreid, 0);
435} 435}
436 436
437#ifdef CONFIG_BCMA_HOST_PCI
437extern void bcma_host_pci_up(struct bcma_bus *bus); 438extern void bcma_host_pci_up(struct bcma_bus *bus);
438extern void bcma_host_pci_down(struct bcma_bus *bus); 439extern void bcma_host_pci_down(struct bcma_bus *bus);
440#else
441static inline void bcma_host_pci_up(struct bcma_bus *bus)
442{
443}
444static inline void bcma_host_pci_down(struct bcma_bus *bus)
445{
446}
447#endif
439 448
440extern bool bcma_core_is_enabled(struct bcma_device *core); 449extern bool bcma_core_is_enabled(struct bcma_device *core);
441extern void bcma_core_disable(struct bcma_device *core, u32 flags); 450extern void bcma_core_disable(struct bcma_device *core, u32 flags);