aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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