diff options
author | Ben Greear <greearb@candelatech.com> | 2011-01-10 02:11:44 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-21 15:32:21 -0500 |
commit | 233536e126056f65a8aac7ff38788d19dbb53299 (patch) | |
tree | 337ccdc6efde57eb5d846fdd00c6eff4e97e749c /drivers/net/wireless/ath/ath9k/init.c | |
parent | 1f427dd913a1bf61f2d124d12a022ca2f1d27f53 (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 767d8b86f1e1..23b299818b18 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c | |||
@@ -537,6 +537,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid, | |||
537 | if (!ah) | 537 | if (!ah) |
538 | return -ENOMEM; | 538 | return -ENOMEM; |
539 | 539 | ||
540 | ah->hw = sc->hw; | ||
540 | ah->hw_version.devid = devid; | 541 | ah->hw_version.devid = devid; |
541 | ah->hw_version.subsysid = subsysid; | 542 | ah->hw_version.subsysid = subsysid; |
542 | sc->sc_ah = ah; | 543 | sc->sc_ah = ah; |