diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2008-11-28 11:50:23 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-05 09:35:09 -0500 |
commit | 826d268091f0e0ecc50103f648b6183eb3efe04d (patch) | |
tree | 16f9f535377f47501fac33e9f72a70ae7b47a0fb /drivers/net/wireless/ath9k/main.c | |
parent | 16d68abee5d700bfe09ae8324dbb76028995c589 (diff) |
ath9k: Add initial layout for an ath9k specific debugfs mechanism
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index 9e7045dd7334..71389643b1b1 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -1299,6 +1299,7 @@ static void ath_detach(struct ath_softc *sc) | |||
1299 | ath_tx_cleanupq(sc, &sc->sc_txq[i]); | 1299 | ath_tx_cleanupq(sc, &sc->sc_txq[i]); |
1300 | 1300 | ||
1301 | ath9k_hw_detach(sc->sc_ah); | 1301 | ath9k_hw_detach(sc->sc_ah); |
1302 | ath9k_exit_debug(sc); | ||
1302 | } | 1303 | } |
1303 | 1304 | ||
1304 | static int ath_init(u16 devid, struct ath_softc *sc) | 1305 | static int ath_init(u16 devid, struct ath_softc *sc) |
@@ -1311,7 +1312,8 @@ static int ath_init(u16 devid, struct ath_softc *sc) | |||
1311 | /* XXX: hardware will not be ready until ath_open() being called */ | 1312 | /* XXX: hardware will not be ready until ath_open() being called */ |
1312 | sc->sc_flags |= SC_OP_INVALID; | 1313 | sc->sc_flags |= SC_OP_INVALID; |
1313 | 1314 | ||
1314 | ath9k_init_debug(sc); | 1315 | if (ath9k_init_debug(sc) < 0) |
1316 | printk(KERN_ERR "Unable to create debugfs files\n"); | ||
1315 | 1317 | ||
1316 | spin_lock_init(&sc->sc_resetlock); | 1318 | spin_lock_init(&sc->sc_resetlock); |
1317 | tasklet_init(&sc->intr_tq, ath9k_tasklet, (unsigned long)sc); | 1319 | tasklet_init(&sc->intr_tq, ath9k_tasklet, (unsigned long)sc); |