mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-02 19:54:04 +02:00
994c1fce91
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18023 3c298f89-4303-0410-b956-a3cf2f4a3e73
21 lines
713 B
Diff
21 lines
713 B
Diff
--- 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(struc
|
|
|
|
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;
|
|
|