Skip to contentSkip to conversation

ath9k: adjust ahb callbacks to new struct layout to avoid compile errors

PATCH New Marek Lindner 2 participants 3 messages Oct 9, 2009 – Oct 14, 2009 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k: adjust ahb callbacks to new struct layout to avoid compile errors

---
 drivers/net/wireless/ath/ath9k/ahb.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
drivers/net/wireless/ath/ath9k/ahb.c +2 -4
index 33c9e81..25531f2 100644
@@ -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;
 
Signature · 1 line
1.6.4.3
#1 lore raw

PATCH 1/1 ath9k: adjust ahb callbacks to new struct layout to avoid compile errors

Quoted 2 lines · Marek Lindner

Thanks, would you mind resending addressing John Linville on the to header and CC'ing linux-wireless ?

Luis

#2 lore raw

PATCH 1/1 ath9k: adjust ahb callbacks to new struct layout to avoid compile errors

Quoted 5 lines · On Wednesday 14 October 2009 02:20:42 Luis R. Rodriguez wrote:
Quoted 1 line · Marek Lindner

Thanks, would you mind resending addressing John Linville on the to header and CC'ing linux-wireless ?

No problem - will do so.

Regards,
Marek