aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/dvm/main.c
diff options
context:
space:
mode:
authorMeenakshi Venkataraman <meenakshi.venkataraman@intel.com>2012-07-16 21:43:56 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-07-26 02:59:28 -0400
commit9da987ac2b88b40c327ce08735b0d46057d180d7 (patch)
treee689d91a92e192c5e1f9b49add3e0cdcff196cd5 /drivers/net/wireless/iwlwifi/dvm/main.c
parent273a5768211450a303c455ff111b77d7ae621973 (diff)
iwlwifi: rework the iwlwifi debugfs structure
The generic part of the driver now creates all debugfs directories. It creates a root directory directly in the the root of the debugfs filesystem and within that directories for each device, named after the device ID of the devices iwlwifi is attached to. In the cfg80211/mac80211 directory there's now a link to the toplevel iwlwifi debugfs directory to make it easier to find the debugfs files. Signed-off-by: Meenakshi Venkataraman <meenakshi.venkataraman@intel.com> Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/dvm/main.c')
-rw-r--r--drivers/net/wireless/iwlwifi/dvm/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/main.c b/drivers/net/wireless/iwlwifi/dvm/main.c
index e8ffbe424b4..ab7b9ed00b8 100644
--- a/drivers/net/wireless/iwlwifi/dvm/main.c
+++ b/drivers/net/wireless/iwlwifi/dvm/main.c
@@ -1222,7 +1222,8 @@ static int iwl_eeprom_init_hw_params(struct iwl_priv *priv)
1222 1222
1223static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans, 1223static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans,
1224 const struct iwl_cfg *cfg, 1224 const struct iwl_cfg *cfg,
1225 const struct iwl_fw *fw) 1225 const struct iwl_fw *fw,
1226 struct dentry *dbgfs_dir)
1226{ 1227{
1227 struct iwl_priv *priv; 1228 struct iwl_priv *priv;
1228 struct ieee80211_hw *hw; 1229 struct ieee80211_hw *hw;
@@ -1466,12 +1467,13 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans,
1466 if (iwlagn_mac_setup_register(priv, &fw->ucode_capa)) 1467 if (iwlagn_mac_setup_register(priv, &fw->ucode_capa))
1467 goto out_destroy_workqueue; 1468 goto out_destroy_workqueue;
1468 1469
1469 if (iwl_dbgfs_register(priv, DRV_NAME)) 1470 if (iwl_dbgfs_register(priv, dbgfs_dir))
1470 IWL_ERR(priv, 1471 goto out_mac80211_unregister;
1471 "failed to create debugfs files. Ignoring error\n");
1472 1472
1473 return op_mode; 1473 return op_mode;
1474 1474
1475out_mac80211_unregister:
1476 iwlagn_mac_unregister(priv);
1475out_destroy_workqueue: 1477out_destroy_workqueue:
1476 iwl_tt_exit(priv); 1478 iwl_tt_exit(priv);
1477 iwl_testmode_free(priv); 1479 iwl_testmode_free(priv);
@@ -1496,8 +1498,6 @@ static void iwl_op_mode_dvm_stop(struct iwl_op_mode *op_mode)
1496 1498
1497 IWL_DEBUG_INFO(priv, "*** UNLOAD DRIVER ***\n"); 1499 IWL_DEBUG_INFO(priv, "*** UNLOAD DRIVER ***\n");
1498 1500
1499 iwl_dbgfs_unregister(priv);
1500
1501 iwl_testmode_free(priv); 1501 iwl_testmode_free(priv);
1502 iwlagn_mac_unregister(priv); 1502 iwlagn_mac_unregister(priv);
1503 1503