diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-10-25 17:19:26 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-10-27 14:16:18 -0400 |
commit | 935477ed7b537cf28b38f0c6b4471915d8c0e12a (patch) | |
tree | 91e02a74b1dea7e6e77b84a605b4448b130a5227 /drivers/net/wireless/ath/ath9k/init.c | |
parent | 6424b036e540c1c360d52b237a71bbfe51584321 (diff) | |
download | op-kernel-dev-935477ed7b537cf28b38f0c6b4471915d8c0e12a.zip op-kernel-dev-935477ed7b537cf28b38f0c6b4471915d8c0e12a.tar.gz |
ath9k_hw: make support for PC-OEM cards optional
The initvals use up quite a bit of space, and PC-OEM support is
typically not needed on embedded systems
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 156a944..57a1760 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -362,6 +362,9 @@ static void ath9k_init_pcoem_platform(struct ath_softc *sc) struct ath9k_hw_capabilities *pCap = &ah->caps; struct ath_common *common = ath9k_hw_common(ah); + if (!IS_ENABLED(CONFIG_ATH9K_PCOEM)) + return; + if (common->bus_ops->ath_bus_type != ATH_PCI) return; |