ath9k: Initialize ah->hw

Previous code left it NULL.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Ben Greear 2011-01-09 23:11:44 -08:00 committed by John W. Linville
parent 1f427dd913
commit 233536e126

View File

@ -537,6 +537,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid,
if (!ah) if (!ah)
return -ENOMEM; return -ENOMEM;
ah->hw = sc->hw;
ah->hw_version.devid = devid; ah->hw_version.devid = devid;
ah->hw_version.subsysid = subsysid; ah->hw_version.subsysid = subsysid;
sc->sc_ah = ah; sc->sc_ah = ah;