summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/core.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-01-14 20:17:05 +0100
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 16:00:30 -0500
commit39c3c2f2de6bccf698bfb5b9c4f56ddf99de0dbc (patch)
tree7ca6a1066ba36a318e47d6899c925109e3f8a08d /drivers/net/wireless/ath9k/core.h
parent88d15707644fad1a137af7a17b00da6135f1c1a8 (diff)
downloadlinux-stable-39c3c2f2de6bccf698bfb5b9c4f56ddf99de0dbc.tar.gz
linux-stable-39c3c2f2de6bccf698bfb5b9c4f56ddf99de0dbc.tar.bz2
linux-stable-39c3c2f2de6bccf698bfb5b9c4f56ddf99de0dbc.zip
ath9k: introduce bus specific cleanup routine
We have left only some PCI specific cleanup code. We have to convert them as well. Changes-licensed-under: ISC Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Signed-off-by: Imre Kaloz <kaloz@openwrt.org> Tested-by: Pavel Roskin <proski@gnu.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/core.h')
-rw-r--r--drivers/net/wireless/ath9k/core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath9k/core.h b/drivers/net/wireless/ath9k/core.h
index 8e93d11d57af..f9fa5c64c77b 100644
--- a/drivers/net/wireless/ath9k/core.h
+++ b/drivers/net/wireless/ath9k/core.h
@@ -695,6 +695,7 @@ enum PROT_MODE {
struct ath_bus_ops {
void (*read_cachesize)(struct ath_softc *sc, int *csz);
+ void (*cleanup)(struct ath_softc *sc);
};
struct ath_softc {
@@ -704,6 +705,7 @@ struct ath_softc {
struct tasklet_struct bcon_tasklet;
struct ath_hal *sc_ah;
void __iomem *mem;
+ int irq;
spinlock_t sc_resetlock;
struct mutex mutex;
@@ -760,4 +762,9 @@ static inline void ath_read_cachesize(struct ath_softc *sc, int *csz)
sc->bus_ops->read_cachesize(sc, csz);
}
+static inline void ath_bus_cleanup(struct ath_softc *sc)
+{
+ sc->bus_ops->cleanup(sc);
+}
+
#endif /* CORE_H */