Skip to content

Commit

Permalink
ath9k_hw: Fix chip test
Browse files Browse the repository at this point in the history
USB devices do not require the chip test routine.

Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Sujith Manoharan authored and John W. Linville committed Jan 10, 2011
1 parent 45b9f50 commit 6cae913
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,10 @@ static int ath9k_hw_init_macaddr(struct ath_hw *ah)

static int ath9k_hw_post_init(struct ath_hw *ah)
{
struct ath_common *common = ath9k_hw_common(ah);
int ecode;

if (!AR_SREV_9271(ah)) {
if (common->bus_ops->ath_bus_type != ATH_USB) {
if (!ath9k_hw_chip_test(ah))
return -ENODEV;
}
Expand Down

0 comments on commit 6cae913

Please sign in to comment.