diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-12-12 12:14:23 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-01-07 20:16:51 (GMT) |
commit | c1b976d2fcb3b308906be7c6bda1390251dec32d (patch) | |
tree | a30dc3bf72e00db673c3414cc8b845a657b7f99c /drivers/net/wireless/ath/ath9k/init.c | |
parent | b81950b165ff71d826fcac851153f9265a83d9ab (diff) | |
download | linux-c1b976d2fcb3b308906be7c6bda1390251dec32d.tar.xz |
ath9k_hw: use the devres API for allocations
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.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 0f00a13..5c01f43 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -559,6 +559,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, if (!ah) return -ENOMEM; + ah->dev = sc->dev; ah->hw = sc->hw; ah->hw_version.devid = devid; ah->reg_ops.read = ath9k_ioread32; |