diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-08-13 06:33:26 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-08-15 16:07:57 -0400 |
commit | f5bde5b8524fb2b8584af3750dbffda6557234e6 (patch) | |
tree | 4f1377bf7d93b6430a79d7a28f20cd95303f2448 | |
parent | 50676b811148314f43f0d874502fe9ac5f7d686d (diff) |
ath9k: remove ath9k_sta_remove_debugfs
mac80211 uses debugfs_remove_recursive, so there's no need for the
driver to do an explicit cleanup of its sta debugfs entry.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.c | 12 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 1 |
4 files changed, 1 insertions, 20 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index 7b1d03650e16..df1c4957e3f0 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h | |||
@@ -262,10 +262,6 @@ struct ath_node { | |||
262 | 262 | ||
263 | bool sleeping; | 263 | bool sleeping; |
264 | bool no_ps_filter; | 264 | bool no_ps_filter; |
265 | |||
266 | #if defined(CONFIG_MAC80211_DEBUGFS) && defined(CONFIG_ATH9K_DEBUGFS) | ||
267 | struct dentry *node_stat; | ||
268 | #endif | ||
269 | }; | 265 | }; |
270 | 266 | ||
271 | struct ath_tx_control { | 267 | struct ath_tx_control { |
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index c10cec5650c6..e5c8333eb55a 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c | |||
@@ -1725,17 +1725,7 @@ void ath9k_sta_add_debugfs(struct ieee80211_hw *hw, | |||
1725 | struct dentry *dir) | 1725 | struct dentry *dir) |
1726 | { | 1726 | { |
1727 | struct ath_node *an = (struct ath_node *)sta->drv_priv; | 1727 | struct ath_node *an = (struct ath_node *)sta->drv_priv; |
1728 | an->node_stat = debugfs_create_file("node_stat", S_IRUGO, | 1728 | debugfs_create_file("node_stat", S_IRUGO, dir, an, &fops_node_stat); |
1729 | dir, an, &fops_node_stat); | ||
1730 | } | ||
1731 | |||
1732 | void ath9k_sta_remove_debugfs(struct ieee80211_hw *hw, | ||
1733 | struct ieee80211_vif *vif, | ||
1734 | struct ieee80211_sta *sta, | ||
1735 | struct dentry *dir) | ||
1736 | { | ||
1737 | struct ath_node *an = (struct ath_node *)sta->drv_priv; | ||
1738 | debugfs_remove(an->node_stat); | ||
1739 | } | 1729 | } |
1740 | 1730 | ||
1741 | /* Ethtool support for get-stats */ | 1731 | /* Ethtool support for get-stats */ |
diff --git a/drivers/net/wireless/ath/ath9k/debug.h b/drivers/net/wireless/ath/ath9k/debug.h index 01c5c6a22e1b..6e1556fa2f3e 100644 --- a/drivers/net/wireless/ath/ath9k/debug.h +++ b/drivers/net/wireless/ath/ath9k/debug.h | |||
@@ -292,10 +292,6 @@ void ath9k_sta_add_debugfs(struct ieee80211_hw *hw, | |||
292 | struct ieee80211_vif *vif, | 292 | struct ieee80211_vif *vif, |
293 | struct ieee80211_sta *sta, | 293 | struct ieee80211_sta *sta, |
294 | struct dentry *dir); | 294 | struct dentry *dir); |
295 | void ath9k_sta_remove_debugfs(struct ieee80211_hw *hw, | ||
296 | struct ieee80211_vif *vif, | ||
297 | struct ieee80211_sta *sta, | ||
298 | struct dentry *dir); | ||
299 | void ath_debug_send_fft_sample(struct ath_softc *sc, | 295 | void ath_debug_send_fft_sample(struct ath_softc *sc, |
300 | struct fft_sample_tlv *fft_sample); | 296 | struct fft_sample_tlv *fft_sample); |
301 | void ath9k_debug_stat_ant(struct ath_softc *sc, | 297 | void ath9k_debug_stat_ant(struct ath_softc *sc, |
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 911744f5c43c..0bee105064bd 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -2364,7 +2364,6 @@ struct ieee80211_ops ath9k_ops = { | |||
2364 | 2364 | ||
2365 | #if defined(CONFIG_MAC80211_DEBUGFS) && defined(CONFIG_ATH9K_DEBUGFS) | 2365 | #if defined(CONFIG_MAC80211_DEBUGFS) && defined(CONFIG_ATH9K_DEBUGFS) |
2366 | .sta_add_debugfs = ath9k_sta_add_debugfs, | 2366 | .sta_add_debugfs = ath9k_sta_add_debugfs, |
2367 | .sta_remove_debugfs = ath9k_sta_remove_debugfs, | ||
2368 | #endif | 2367 | #endif |
2369 | .sw_scan_start = ath9k_sw_scan_start, | 2368 | .sw_scan_start = ath9k_sw_scan_start, |
2370 | .sw_scan_complete = ath9k_sw_scan_complete, | 2369 | .sw_scan_complete = ath9k_sw_scan_complete, |