summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/main.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-08-03 12:24:37 -0700
committerJohn W. Linville <linville@tuxdriver.com>2009-08-04 16:44:28 -0400
commit8df5d1b77395271dd9b75ed2b9aa9235f7589a0d (patch)
tree735c3ac7d49dbe49a611b3683d9a5ee8c59ea94e /drivers/net/wireless/ath/ath9k/main.c
parent4f3acf81f2a47244f7403353784f528c92e98a6c (diff)
downloadblackbird-obmc-linux-8df5d1b77395271dd9b75ed2b9aa9235f7589a0d.tar.gz
blackbird-obmc-linux-8df5d1b77395271dd9b75ed2b9aa9235f7589a0d.zip
ath9k: move devid cache setting to ath_init()
This lets us trim one argument off of hw initializer routines. 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/main.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index c2b9974aa094..fa2c230c3c2f 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -1331,8 +1331,9 @@ static int ath_init(u16 devid, struct ath_softc *sc)
}
ah->ah_sc = sc;
+ ah->hw_version.devid = devid;
- r = ath9k_hw_attach(ah, devid, sc);
+ r = ath9k_hw_attach(ah, sc);
if (r) {
DPRINTF(sc, ATH_DBG_FATAL,
"Unable to attach hardware; "
OpenPOWER on IntegriCloud