diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-11-25 21:00:30 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-21 18:38:57 -0500 |
commit | 411132628f95dd3d51b84e0e2d8ff8f4f2d09cdb (patch) | |
tree | 5d49915f0c415a678a2b8c85e911b245f483998f | |
parent | 12375ef933fa8271396ed0c1e318cb1bd2e2689d (diff) |
ath9k_hw: remove unused ath9k_hw_devname() and ath9k_hw_probe()
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 2ec61f08cfdb..917f70f7a28e 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -343,30 +343,6 @@ static bool ath9k_hw_chip_test(struct ath_hw *ah) | |||
343 | return true; | 343 | return true; |
344 | } | 344 | } |
345 | 345 | ||
346 | static const char *ath9k_hw_devname(u16 devid) | ||
347 | { | ||
348 | switch (devid) { | ||
349 | case AR5416_DEVID_PCI: | ||
350 | return "Atheros 5416"; | ||
351 | case AR5416_DEVID_PCIE: | ||
352 | return "Atheros 5418"; | ||
353 | case AR9160_DEVID_PCI: | ||
354 | return "Atheros 9160"; | ||
355 | case AR5416_AR9100_DEVID: | ||
356 | return "Atheros 9100"; | ||
357 | case AR9280_DEVID_PCI: | ||
358 | case AR9280_DEVID_PCIE: | ||
359 | return "Atheros 9280"; | ||
360 | case AR9285_DEVID_PCIE: | ||
361 | return "Atheros 9285"; | ||
362 | case AR5416_DEVID_AR9287_PCI: | ||
363 | case AR5416_DEVID_AR9287_PCIE: | ||
364 | return "Atheros 9287"; | ||
365 | } | ||
366 | |||
367 | return NULL; | ||
368 | } | ||
369 | |||
370 | static void ath9k_hw_init_config(struct ath_hw *ah) | 346 | static void ath9k_hw_init_config(struct ath_hw *ah) |
371 | { | 347 | { |
372 | int i; | 348 | int i; |
@@ -1266,12 +1242,6 @@ static void ath9k_hw_init_user_settings(struct ath_hw *ah) | |||
1266 | ath9k_hw_set_global_txtimeout(ah, ah->globaltxtimeout); | 1242 | ath9k_hw_set_global_txtimeout(ah, ah->globaltxtimeout); |
1267 | } | 1243 | } |
1268 | 1244 | ||
1269 | const char *ath9k_hw_probe(u16 vendorid, u16 devid) | ||
1270 | { | ||
1271 | return vendorid == ATHEROS_VENDOR_ID ? | ||
1272 | ath9k_hw_devname(devid) : NULL; | ||
1273 | } | ||
1274 | |||
1275 | void ath9k_hw_detach(struct ath_hw *ah) | 1245 | void ath9k_hw_detach(struct ath_hw *ah) |
1276 | { | 1246 | { |
1277 | struct ath_common *common = ath9k_hw_common(ah); | 1247 | struct ath_common *common = ath9k_hw_common(ah); |