diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2009-10-14 11:04:45 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:48:18 -0400 |
commit | e307fcf0a10f9c0c21b3d8b2ff7862b29796cc7f (patch) | |
tree | 8c1b7cc1723db1ed67cb13bb79e0af3596937b80 /drivers/net/wireless/ath/ath9k/ahb.c | |
parent | 6d898b1983b62ad52f862014748ddce35aad005a (diff) |
ath9k: adjust ahb callbacks to new struct layout to avoid compile errors
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ahb.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ahb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ahb.c b/drivers/net/wireless/ath/ath9k/ahb.c index 33c9e8167185..25531f231b67 100644 --- a/drivers/net/wireless/ath/ath9k/ahb.c +++ b/drivers/net/wireless/ath/ath9k/ahb.c | |||
@@ -29,15 +29,13 @@ static void ath_ahb_read_cachesize(struct ath_common *common, int *csz) | |||
29 | 29 | ||
30 | static void ath_ahb_cleanup(struct ath_common *common) | 30 | static void ath_ahb_cleanup(struct ath_common *common) |
31 | { | 31 | { |
32 | struct ath_hw *ah = (struct ath_hw *) common->ah; | 32 | struct ath_softc *sc = (struct ath_softc *)common->priv; |
33 | struct ath_softc *sc = ah->ah_sc; | ||
34 | iounmap(sc->mem); | 33 | iounmap(sc->mem); |
35 | } | 34 | } |
36 | 35 | ||
37 | static bool ath_ahb_eeprom_read(struct ath_common *common, u32 off, u16 *data) | 36 | static bool ath_ahb_eeprom_read(struct ath_common *common, u32 off, u16 *data) |
38 | { | 37 | { |
39 | struct ath_hw *ah = (struct ath_hw *) common->ah; | 38 | struct ath_softc *sc = (struct ath_softc *)common->priv; |
40 | struct ath_softc *sc = ah->ah_sc; | ||
41 | struct platform_device *pdev = to_platform_device(sc->dev); | 39 | struct platform_device *pdev = to_platform_device(sc->dev); |
42 | struct ath9k_platform_data *pdata; | 40 | struct ath9k_platform_data *pdata; |
43 | 41 | ||