summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorMarek Lindner <lindner_marek@yahoo.de>2009-10-14 23:04:45 +0800
committerJohn W. Linville <linville@tuxdriver.com>2009-10-27 16:48:18 -0400
commite307fcf0a10f9c0c21b3d8b2ff7862b29796cc7f (patch)
tree8c1b7cc1723db1ed67cb13bb79e0af3596937b80 /drivers/net
parent6d898b1983b62ad52f862014748ddce35aad005a (diff)
downloadblackbird-op-linux-e307fcf0a10f9c0c21b3d8b2ff7862b29796cc7f.tar.gz
blackbird-op-linux-e307fcf0a10f9c0c21b3d8b2ff7862b29796cc7f.zip
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')
-rw-r--r--drivers/net/wireless/ath/ath9k/ahb.c6
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)
static void ath_ahb_cleanup(struct ath_common *common)
{
- struct ath_hw *ah = (struct ath_hw *) common->ah;
- struct ath_softc *sc = ah->ah_sc;
+ struct ath_softc *sc = (struct ath_softc *)common->priv;
iounmap(sc->mem);
}
static bool ath_ahb_eeprom_read(struct ath_common *common, u32 off, u16 *data)
{
- struct ath_hw *ah = (struct ath_hw *) common->ah;
- struct ath_softc *sc = ah->ah_sc;
+ struct ath_softc *sc = (struct ath_softc *)common->priv;
struct platform_device *pdev = to_platform_device(sc->dev);
struct ath9k_platform_data *pdata;
OpenPOWER on IntegriCloud