ath9k: remove ath9k_sta_remove_debugfs
authorFelix Fietkau <nbd@openwrt.org>
Tue, 13 Aug 2013 10:33:26 +0000 (12:33 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Aug 2013 20:07:57 +0000 (16:07 -0400)
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>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/debug.c
drivers/net/wireless/ath/ath9k/debug.h
drivers/net/wireless/ath/ath9k/main.c

index 7b1d03650e1656ed8edd8e73e0b4a3dedd02c3e0..df1c4957e3f09c92d9919b5a5a0249e8f1835440 100644 (file)
@@ -262,10 +262,6 @@ struct ath_node {
 
        bool sleeping;
        bool no_ps_filter;
-
-#if defined(CONFIG_MAC80211_DEBUGFS) && defined(CONFIG_ATH9K_DEBUGFS)
-       struct dentry *node_stat;
-#endif
 };
 
 struct ath_tx_control {
index c10cec5650c6abf1808c739eb8913c2ce2fb66ee..e5c8333eb55a9be260471451dd5c5722bef377f5 100644 (file)
@@ -1725,17 +1725,7 @@ void ath9k_sta_add_debugfs(struct ieee80211_hw *hw,
                           struct dentry *dir)
 {
        struct ath_node *an = (struct ath_node *)sta->drv_priv;
-       an->node_stat = debugfs_create_file("node_stat", S_IRUGO,
-                                           dir, an, &fops_node_stat);
-}
-
-void ath9k_sta_remove_debugfs(struct ieee80211_hw *hw,
-                             struct ieee80211_vif *vif,
-                             struct ieee80211_sta *sta,
-                             struct dentry *dir)
-{
-       struct ath_node *an = (struct ath_node *)sta->drv_priv;
-       debugfs_remove(an->node_stat);
+       debugfs_create_file("node_stat", S_IRUGO, dir, an, &fops_node_stat);
 }
 
 /* Ethtool support for get-stats */
index 01c5c6a22e1bbbb146c424766939ae26cd98f983..6e1556fa2f3e88713fa834cb56d3a4d9f6d87c48 100644 (file)
@@ -292,10 +292,6 @@ void ath9k_sta_add_debugfs(struct ieee80211_hw *hw,
                           struct ieee80211_vif *vif,
                           struct ieee80211_sta *sta,
                           struct dentry *dir);
-void ath9k_sta_remove_debugfs(struct ieee80211_hw *hw,
-                             struct ieee80211_vif *vif,
-                             struct ieee80211_sta *sta,
-                             struct dentry *dir);
 void ath_debug_send_fft_sample(struct ath_softc *sc,
                               struct fft_sample_tlv *fft_sample);
 void ath9k_debug_stat_ant(struct ath_softc *sc,
index 911744f5c43ce2ac93f8da145159760257583e3c..0bee105064bdc608a1d1ec3c7a3e60002355c201 100644 (file)
@@ -2364,7 +2364,6 @@ struct ieee80211_ops ath9k_ops = {
 
 #if defined(CONFIG_MAC80211_DEBUGFS) && defined(CONFIG_ATH9K_DEBUGFS)
        .sta_add_debugfs    = ath9k_sta_add_debugfs,
-       .sta_remove_debugfs = ath9k_sta_remove_debugfs,
 #endif
        .sw_scan_start      = ath9k_sw_scan_start,
        .sw_scan_complete   = ath9k_sw_scan_complete,