diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2008-08-11 04:34:13 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-29 16:23:56 -0400 |
commit | d2d80ee9c6ae3d60bcbffb200959db645f5a558f (patch) | |
tree | 59591917a1c929ca5f556801eba3891ebeb9990c /drivers | |
parent | 556bb8f141d702a84281064751a3242359a9f257 (diff) |
ath9k: Remove ar5416hal and assign default values directly
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath9k/hw.c | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c index a17eb130f574..3d879e7a8ea6 100644 --- a/drivers/net/wireless/ath9k/hw.c +++ b/drivers/net/wireless/ath9k/hw.c | |||
@@ -85,29 +85,6 @@ static const struct hal_percal_data adc_init_dc_cal = { | |||
85 | ath9k_hw_adc_dccal_calibrate | 85 | ath9k_hw_adc_dccal_calibrate |
86 | }; | 86 | }; |
87 | 87 | ||
88 | static const struct ath_hal ar5416hal = { | ||
89 | AR5416_MAGIC, | ||
90 | 0, | ||
91 | 0, | ||
92 | NULL, | ||
93 | NULL, | ||
94 | CTRY_DEFAULT, | ||
95 | 0, | ||
96 | 0, | ||
97 | 0, | ||
98 | 0, | ||
99 | 0, | ||
100 | {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
101 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
102 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
103 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
104 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
105 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
106 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
107 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
108 | }, | ||
109 | }; | ||
110 | |||
111 | static struct ath9k_rate_table ar5416_11a_table = { | 88 | static struct ath9k_rate_table ar5416_11a_table = { |
112 | 8, | 89 | 8, |
113 | {0}, | 90 | {0}, |
@@ -1196,11 +1173,12 @@ static struct ath_hal_5416 *ath9k_hw_newstate(u16 devid, | |||
1196 | 1173 | ||
1197 | ah = &ahp->ah; | 1174 | ah = &ahp->ah; |
1198 | 1175 | ||
1199 | memcpy(&ahp->ah, &ar5416hal, sizeof(struct ath_hal)); | ||
1200 | |||
1201 | ah->ah_sc = sc; | 1176 | ah->ah_sc = sc; |
1202 | ah->ah_sh = mem; | 1177 | ah->ah_sh = mem; |
1203 | 1178 | ||
1179 | ah->ah_magic = AR5416_MAGIC; | ||
1180 | ah->ah_countryCode = CTRY_DEFAULT; | ||
1181 | |||
1204 | ah->ah_devid = devid; | 1182 | ah->ah_devid = devid; |
1205 | ah->ah_subvendorid = 0; | 1183 | ah->ah_subvendorid = 0; |
1206 | 1184 | ||