brcmfmac: only build fwsignal module for CONFIG_BRCMFMAC_PROTO_BCDC
authorArend Van Spriel <arend.vanspriel@broadcom.com>
Fri, 14 Apr 2017 21:27:37 +0000 (22:27 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 19 Apr 2017 11:39:44 +0000 (14:39 +0300)
The fwsignal module is only referenced by the bcdc module and part of the
bcdc protocol. So only build it when CONFIG_BRCMFMAC_PROTO_BCDC is selected.

Fixes: acf8ac41dd73 ("brcmfmac: remove reference to fwsignal data from struct brcmf_pub")
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/Makefile

index 0383ba559edccaaad719ff2ec08bec1606a56108..1f5a9b948abf49a2ce4baddf476c67bf6288ec5a 100644 (file)
@@ -25,7 +25,6 @@ brcmfmac-objs += \
                chip.o \
                fwil.o \
                fweh.o \
-               fwsignal.o \
                p2p.o \
                proto.o \
                common.o \
@@ -36,7 +35,8 @@ brcmfmac-objs += \
                vendor.o \
                pno.o
 brcmfmac-$(CONFIG_BRCMFMAC_PROTO_BCDC) += \
-               bcdc.o
+               bcdc.o \
+               fwsignal.o
 brcmfmac-$(CONFIG_BRCMFMAC_PROTO_MSGBUF) += \
                commonring.o \
                flowring.o \