diff options
author | Arend van Spriel <arend@broadcom.com> | 2014-09-11 22:51:31 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-09-15 15:09:26 -0400 |
commit | f1d56039b58f6f786450a858b2c8d2459a3382cc (patch) | |
tree | 2566ab263d36c19b8453d7688dc8c0b61ac32e87 /drivers/net/wireless/brcm80211/brcmfmac/bcdc.h | |
parent | fac7d2a3b8798f8b58004c74c4b37b9643b5897a (diff) | |
download | linux-f1d56039b58f6f786450a858b2c8d2459a3382cc.tar.gz linux-f1d56039b58f6f786450a858b2c8d2459a3382cc.tar.bz2 linux-f1d56039b58f6f786450a858b2c8d2459a3382cc.zip |
brcmfmac: conditionally compile firmware protocol source code
The host-interface can select which protocol implementation it
needs. Selecting PCIe will include the msgbuf protocol and selecting
USB and/or SDIO will include the bcdc protocol. The PCIe kconfig
option assures the dependencies for msgbuf are met, ie. HAS_DMA.
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Daniel (Deognyoun) Kim <dekim@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac/bcdc.h')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/bcdc.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/bcdc.h b/drivers/net/wireless/brcm80211/brcmfmac/bcdc.h index 17e8c039ff32..6003179c0ceb 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/bcdc.h +++ b/drivers/net/wireless/brcm80211/brcmfmac/bcdc.h @@ -16,9 +16,12 @@ #ifndef BRCMFMAC_BCDC_H #define BRCMFMAC_BCDC_H - +#ifdef CONFIG_BRCMFMAC_PROTO_BCDC int brcmf_proto_bcdc_attach(struct brcmf_pub *drvr); void brcmf_proto_bcdc_detach(struct brcmf_pub *drvr); - +#else +static inline int brcmf_proto_bcdc_attach(struct brcmf_pub *drvr) { return 0; } +static inline void brcmf_proto_bcdc_detach(struct brcmf_pub *drvr) {} +#endif #endif /* BRCMFMAC_BCDC_H */ |