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>
This commit is contained in:
Luis R. Rodriguez
2009-08-03 12:24:37 -07:00
committed by John W. Linville
parent 4f3acf81f2
commit 8df5d1b773
3 changed files with 9 additions and 11 deletions

View File

@@ -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; "