aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/hw.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-08-03 12:24:35 -0700
committerJohn W. Linville <linville@tuxdriver.com>2009-08-04 16:44:27 -0400
commit7819ac84b689b61340f29af6233fa1d15b76a6ef (patch)
tree088a5b201762c087fd57507f80ad4c433bbc0896 /drivers/net/wireless/ath/ath9k/hw.c
parentfbf54660d1b48fba8527aae5c628ba72feee8f83 (diff)
ath9k: propagate hw initialization errors
We were never propagating hw initialization errors, lets do that now and also use -EOPNOTSUPP when device revision is not supported yet. Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 8228f41c9c3..2e09204fc8a 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -1223,7 +1223,7 @@ struct ath_hw *ath9k_hw_attach(u16 devid, struct ath_softc *sc, int *error)
ah = ath9k_hw_do_attach(devid, sc, error);
break;
default:
- *error = -ENXIO;
+ *error = -EOPNOTSUPP;
break;
}