diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-06-30 09:16:05 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-07-10 12:16:47 -0400 |
commit | 1dfef20a4cf82997d4c7520138ed8188a181241c (patch) | |
tree | ab2d6f842f0941b1beb96a180dbb9fb053167823 | |
parent | a55b316e02dda9ffd7ef5ebb04962607f669baae (diff) |
brcmsmac: remove PCI_FORCEHT() macro
The BCM4716 is a SoC and does not have a PCI client interface, so this
condition is never true.
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/aiutils.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c index c942a882e6ad..c7ec9b7a384b 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c | |||
@@ -318,9 +318,6 @@ | |||
318 | #define IS_SIM(chippkg) \ | 318 | #define IS_SIM(chippkg) \ |
319 | ((chippkg == HDLSIM_PKG_ID) || (chippkg == HWSIM_PKG_ID)) | 319 | ((chippkg == HDLSIM_PKG_ID) || (chippkg == HWSIM_PKG_ID)) |
320 | 320 | ||
321 | #define PCI_FORCEHT(sih) ((ai_get_buscoretype(sih) == PCIE_CORE_ID) && \ | ||
322 | (ai_get_chip_id(sih) == BCM4716_CHIP_ID)) | ||
323 | |||
324 | #ifdef DEBUG | 321 | #ifdef DEBUG |
325 | #define SI_MSG(fmt, ...) pr_debug(fmt, ##__VA_ARGS__) | 322 | #define SI_MSG(fmt, ...) pr_debug(fmt, ##__VA_ARGS__) |
326 | #else | 323 | #else |
@@ -753,9 +750,6 @@ bool ai_clkctl_cc(struct si_pub *sih, enum bcma_clkmode mode) | |||
753 | 750 | ||
754 | sii = (struct si_info *)sih; | 751 | sii = (struct si_info *)sih; |
755 | 752 | ||
756 | if (PCI_FORCEHT(sih)) | ||
757 | return mode == BCMA_CLKMODE_FAST; | ||
758 | |||
759 | cc = ai_findcore(&sii->pub, BCMA_CORE_CHIPCOMMON, 0); | 753 | cc = ai_findcore(&sii->pub, BCMA_CORE_CHIPCOMMON, 0); |
760 | bcma_core_set_clockmode(cc, mode); | 754 | bcma_core_set_clockmode(cc, mode); |
761 | return mode == BCMA_CLKMODE_FAST; | 755 | return mode == BCMA_CLKMODE_FAST; |
@@ -764,15 +758,9 @@ bool ai_clkctl_cc(struct si_pub *sih, enum bcma_clkmode mode) | |||
764 | void ai_pci_up(struct si_pub *sih) | 758 | void ai_pci_up(struct si_pub *sih) |
765 | { | 759 | { |
766 | struct si_info *sii; | 760 | struct si_info *sii; |
767 | struct bcma_device *cc; | ||
768 | 761 | ||
769 | sii = (struct si_info *)sih; | 762 | sii = (struct si_info *)sih; |
770 | 763 | ||
771 | if (PCI_FORCEHT(sih)) { | ||
772 | cc = ai_findcore(&sii->pub, BCMA_CORE_CHIPCOMMON, 0); | ||
773 | bcma_core_set_clockmode(cc, BCMA_CLKMODE_FAST); | ||
774 | } | ||
775 | |||
776 | if (sii->icbus->hosttype == BCMA_HOSTTYPE_PCI) | 764 | if (sii->icbus->hosttype == BCMA_HOSTTYPE_PCI) |
777 | bcma_core_pci_extend_L1timer(&sii->icbus->drv_pci, true); | 765 | bcma_core_pci_extend_L1timer(&sii->icbus->drv_pci, true); |
778 | } | 766 | } |
@@ -781,16 +769,9 @@ void ai_pci_up(struct si_pub *sih) | |||
781 | void ai_pci_down(struct si_pub *sih) | 769 | void ai_pci_down(struct si_pub *sih) |
782 | { | 770 | { |
783 | struct si_info *sii; | 771 | struct si_info *sii; |
784 | struct bcma_device *cc; | ||
785 | 772 | ||
786 | sii = (struct si_info *)sih; | 773 | sii = (struct si_info *)sih; |
787 | 774 | ||
788 | /* release FORCEHT since chip is going to "down" state */ | ||
789 | if (PCI_FORCEHT(sih)) { | ||
790 | cc = ai_findcore(&sii->pub, BCMA_CORE_CHIPCOMMON, 0); | ||
791 | bcma_core_set_clockmode(cc, BCMA_CLKMODE_DYNAMIC); | ||
792 | } | ||
793 | |||
794 | if (sii->icbus->hosttype == BCMA_HOSTTYPE_PCI) | 775 | if (sii->icbus->hosttype == BCMA_HOSTTYPE_PCI) |
795 | bcma_core_pci_extend_L1timer(&sii->icbus->drv_pci, false); | 776 | bcma_core_pci_extend_L1timer(&sii->icbus->drv_pci, false); |
796 | } | 777 | } |