mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 21:24:00 +08:00
ath9k_hw: Fix chip test
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>
This commit is contained in:
parent
45b9f509b7
commit
6cae913d6c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user