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 | |
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>
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/aiutils.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/aiutils.h | 7 |
2 files changed, 0 insertions, 14 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); |
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.h b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.h index b51d1e421e24..1da9759eb7d8 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/aiutils.h +++ b/drivers/net/wireless/brcm80211/brcmsmac/aiutils.h | |||
@@ -149,21 +149,14 @@ struct si_pub { | |||
149 | uint buscoreidx; /* buscore index */ | 149 | uint buscoreidx; /* buscore index */ |
150 | int ccrev; /* chip common core rev */ | 150 | int ccrev; /* chip common core rev */ |
151 | u32 cccaps; /* chip common capabilities */ | 151 | u32 cccaps; /* chip common capabilities */ |
152 | u32 cccaps_ext; /* chip common capabilities extension */ | ||
153 | int pmurev; /* pmu core rev */ | 152 | int pmurev; /* pmu core rev */ |
154 | u32 pmucaps; /* pmu capabilities */ | 153 | u32 pmucaps; /* pmu capabilities */ |
155 | uint boardtype; /* board type */ | 154 | uint boardtype; /* board type */ |
156 | uint boardvendor; /* board vendor */ | 155 | uint boardvendor; /* board vendor */ |
157 | uint boardflags; /* board flags */ | ||
158 | uint boardflags2; /* board flags2 */ | ||
159 | uint chip; /* chip number */ | 156 | uint chip; /* chip number */ |
160 | uint chiprev; /* chip revision */ | 157 | uint chiprev; /* chip revision */ |
161 | uint chippkg; /* chip package option */ | 158 | uint chippkg; /* chip package option */ |
162 | u32 chipst; /* chip status */ | 159 | u32 chipst; /* chip status */ |
163 | bool issim; /* chip is in simulation or emulation */ | ||
164 | uint socirev; /* SOC interconnect rev */ | ||
165 | bool pci_pr32414; | ||
166 | |||
167 | }; | 160 | }; |
168 | 161 | ||
169 | struct pci_dev; | 162 | struct pci_dev; |