diff options
author | Arend van Spriel <arend@broadcom.com> | 2011-12-08 18:06:43 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-13 15:31:31 -0500 |
commit | c9eb65a4865a915e93847be19a546d47816d88e4 (patch) | |
tree | 829a9b27447a99edd9d056092db1b1b483c010ef /drivers/net/wireless/brcm80211/brcmsmac/aiutils.c | |
parent | 084455524f0d46dd210b4397898aff73579b97e8 (diff) |
brcm80211: smac: remove unused fields from struct si_pub definition
Several fields from the si_pub structure were not used or only set
once but never checked. These fields have been removed.
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Alwin Beukers <alwin@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmsmac/aiutils.c')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/aiutils.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c index 39e305443d7e..66c79f1aa081 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.c | |||
@@ -932,10 +932,6 @@ ai_buscore_setup(struct si_info *sii, u32 savewin, uint *origidx) | |||
932 | 932 | ||
933 | /* get chipcommon capabilites */ | 933 | /* get chipcommon capabilites */ |
934 | sii->pub.cccaps = R_REG(&cc->capabilities); | 934 | sii->pub.cccaps = R_REG(&cc->capabilities); |
935 | /* get chipcommon extended capabilities */ | ||
936 | |||
937 | if (sii->pub.ccrev >= 35) | ||
938 | sii->pub.cccaps_ext = R_REG(&cc->capabilities_ext); | ||
939 | 935 | ||
940 | /* get pmu rev and caps */ | 936 | /* get pmu rev and caps */ |
941 | if (sii->pub.cccaps & CC_CAP_PMU) { | 937 | if (sii->pub.cccaps & CC_CAP_PMU) { |
@@ -1023,7 +1019,6 @@ static __used void ai_nvram_process(struct si_info *sii) | |||
1023 | 1019 | ||
1024 | sii->pub.boardvendor = w & 0xffff; | 1020 | sii->pub.boardvendor = w & 0xffff; |
1025 | sii->pub.boardtype = (w >> 16) & 0xffff; | 1021 | sii->pub.boardtype = (w >> 16) & 0xffff; |
1026 | sii->pub.boardflags = getintvar(&sii->pub, BRCMS_SROM_BOARDFLAGS); | ||
1027 | } | 1022 | } |
1028 | 1023 | ||
1029 | static struct si_info *ai_doattach(struct si_info *sii, | 1024 | static struct si_info *ai_doattach(struct si_info *sii, |
@@ -1071,8 +1066,6 @@ static struct si_info *ai_doattach(struct si_info *sii, | |||
1071 | sih->chiprev = (w & CID_REV_MASK) >> CID_REV_SHIFT; | 1066 | sih->chiprev = (w & CID_REV_MASK) >> CID_REV_SHIFT; |
1072 | sih->chippkg = (w & CID_PKG_MASK) >> CID_PKG_SHIFT; | 1067 | sih->chippkg = (w & CID_PKG_MASK) >> CID_PKG_SHIFT; |
1073 | 1068 | ||
1074 | sih->issim = false; | ||
1075 | |||
1076 | /* scan for cores */ | 1069 | /* scan for cores */ |
1077 | if (socitype == SOCI_AI) { | 1070 | if (socitype == SOCI_AI) { |
1078 | SI_MSG("Found chip type AI (0x%08x)\n", w); | 1071 | SI_MSG("Found chip type AI (0x%08x)\n", w); |