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:

committed by
John W. Linville

parent
4f3acf81f2
commit
8df5d1b773
@@ -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; "
|
||||
|
Reference in New Issue
Block a user