diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-04-12 12:23:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-13 15:21:34 -0400 |
commit | 8e26a0303614e766f993b1ac4a5bfbf80436d9dd (patch) | |
tree | 0c0013afe7b785f65c7e237766b828111d51625c /drivers/net/wireless/ath/ath9k/ath9k.h | |
parent | 12488e01fb2b06bb3f6ee137efc88e29d827817e (diff) |
ath9k: introduce ATH9K_{PCI,AHB} config options
Currently ath9k only available in menuconfig if PCI bus
support is enabled. However the driver is required for
the built-in wireless MACs of the Atheros AR9130/AR9132
SoCs. These SoCs have no PCI controller, the wireless
MAC is connected to the AHB bus on them.
Introduce separated config options for the supported
buses, in order to allow building of ath9h without PCI
bus support.
As a bonus, this patch removes the cross-reference of
the ATHEROS_AR71XX option which is not present in the
kernel.
Cc: Luis R. Rodriguez <lrodriguez@atheros.com>
Cc: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ath9k.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index 38835bc324b2..77ad407e9fa3 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h | |||
@@ -665,7 +665,7 @@ void ath_radio_disable(struct ath_softc *sc, struct ieee80211_hw *hw); | |||
665 | bool ath9k_setpower(struct ath_softc *sc, enum ath9k_power_mode mode); | 665 | bool ath9k_setpower(struct ath_softc *sc, enum ath9k_power_mode mode); |
666 | bool ath9k_uses_beacons(int type); | 666 | bool ath9k_uses_beacons(int type); |
667 | 667 | ||
668 | #ifdef CONFIG_PCI | 668 | #ifdef CONFIG_ATH9K_PCI |
669 | int ath_pci_init(void); | 669 | int ath_pci_init(void); |
670 | void ath_pci_exit(void); | 670 | void ath_pci_exit(void); |
671 | #else | 671 | #else |
@@ -673,7 +673,7 @@ static inline int ath_pci_init(void) { return 0; }; | |||
673 | static inline void ath_pci_exit(void) {}; | 673 | static inline void ath_pci_exit(void) {}; |
674 | #endif | 674 | #endif |
675 | 675 | ||
676 | #ifdef CONFIG_ATHEROS_AR71XX | 676 | #ifdef CONFIG_ATH9K_AHB |
677 | int ath_ahb_init(void); | 677 | int ath_ahb_init(void); |
678 | void ath_ahb_exit(void); | 678 | void ath_ahb_exit(void); |
679 | #else | 679 | #else |