aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl4965-base.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2008-05-29 04:35:26 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-06-03 15:00:26 -0400
commit67249625089c21ec299b337a26448312b7eb91b3 (patch)
tree5dca880740f145c37f830656186404ae74cdd29d /drivers/net/wireless/iwlwifi/iwl4965-base.c
parent261415f77a947a452dbd32a35186b2dc3ce14020 (diff)
iwlwifi: remove debugfs entries before cfg80211
This patch solves a bug in debugfs unregistration. iwlwifi registers its debugfs files under cfg80211's dir, but removed its files only after having unregistered mac80211 that removes cfg80211 debugfs dir. This garbaged debugfs and didn't allow to rmmod and insmod iwlwifi several times in a row. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl4965-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index 676d04356b55..e5e8ad829a92 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -5323,6 +5323,9 @@ static void __devexit iwl4965_pci_remove(struct pci_dev *pdev)
5323 5323
5324 IWL_DEBUG_INFO("*** UNLOAD DRIVER ***\n"); 5324 IWL_DEBUG_INFO("*** UNLOAD DRIVER ***\n");
5325 5325
5326 iwl_dbgfs_unregister(priv);
5327 sysfs_remove_group(&pdev->dev.kobj, &iwl4965_attribute_group);
5328
5326 if (priv->mac80211_registered) { 5329 if (priv->mac80211_registered) {
5327 ieee80211_unregister_hw(priv->hw); 5330 ieee80211_unregister_hw(priv->hw);
5328 priv->mac80211_registered = 0; 5331 priv->mac80211_registered = 0;
@@ -5350,8 +5353,6 @@ static void __devexit iwl4965_pci_remove(struct pci_dev *pdev)
5350 } 5353 }
5351 5354
5352 iwlcore_low_level_notify(priv, IWLCORE_REMOVE_EVT); 5355 iwlcore_low_level_notify(priv, IWLCORE_REMOVE_EVT);
5353 iwl_dbgfs_unregister(priv);
5354 sysfs_remove_group(&pdev->dev.kobj, &iwl4965_attribute_group);
5355 5356
5356 iwl4965_dealloc_ucode_pci(priv); 5357 iwl4965_dealloc_ucode_pci(priv);
5357 5358