aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/debug.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-03-05 10:55:18 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-03-16 18:09:27 -0400
commit19d8bc22bcea749da2ba065a1ff9e054fadb556e (patch)
tree69c5d473198e963bdb298fb9411e1f52f7770067 /drivers/net/wireless/ath9k/debug.h
parent0eeb59fe2cd84b62f374874a59e62402e13f48b3 (diff)
ath9k: create a common debugfs_root for all device instances
The driver are trying to create an 'ath9k' directory in debugfs for each device currently. If there are more than one device in the system, the second try will always fail. Changes-licensed-under: ISC Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Signed-off-by: Imre Kaloz <kaloz@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/debug.h')
-rw-r--r--drivers/net/wireless/ath9k/debug.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/debug.h b/drivers/net/wireless/ath9k/debug.h
index 2a33d74fdbee..065268b8568f 100644
--- a/drivers/net/wireless/ath9k/debug.h
+++ b/drivers/net/wireless/ath9k/debug.h
@@ -102,7 +102,6 @@ struct ath_stats {
102 102
103struct ath9k_debug { 103struct ath9k_debug {
104 int debug_mask; 104 int debug_mask;
105 struct dentry *debugfs_root;
106 struct dentry *debugfs_phy; 105 struct dentry *debugfs_phy;
107 struct dentry *debugfs_dma; 106 struct dentry *debugfs_dma;
108 struct dentry *debugfs_interrupt; 107 struct dentry *debugfs_interrupt;
@@ -114,6 +113,8 @@ struct ath9k_debug {
114void DPRINTF(struct ath_softc *sc, int dbg_mask, const char *fmt, ...); 113void DPRINTF(struct ath_softc *sc, int dbg_mask, const char *fmt, ...);
115int ath9k_init_debug(struct ath_softc *sc); 114int ath9k_init_debug(struct ath_softc *sc);
116void ath9k_exit_debug(struct ath_softc *sc); 115void ath9k_exit_debug(struct ath_softc *sc);
116int ath9k_debug_create_root(void);
117void ath9k_debug_remove_root(void);
117void ath_debug_stat_interrupt(struct ath_softc *sc, enum ath9k_int status); 118void ath_debug_stat_interrupt(struct ath_softc *sc, enum ath9k_int status);
118void ath_debug_stat_rc(struct ath_softc *sc, struct sk_buff *skb); 119void ath_debug_stat_rc(struct ath_softc *sc, struct sk_buff *skb);
119void ath_debug_stat_retries(struct ath_softc *sc, int rix, 120void ath_debug_stat_retries(struct ath_softc *sc, int rix,
@@ -135,6 +136,15 @@ static inline void ath9k_exit_debug(struct ath_softc *sc)
135{ 136{
136} 137}
137 138
139static inline int ath9k_debug_create_root(void)
140{
141 return 0;
142}
143
144static inline void ath9k_debug_remove_root(void)
145{
146}
147
138static inline void ath_debug_stat_interrupt(struct ath_softc *sc, 148static inline void ath_debug_stat_interrupt(struct ath_softc *sc,
139 enum ath9k_int status) 149 enum ath9k_int status)
140{ 150{