summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/main.c b/main.c
index 4b075c1..7536039 100644
--- a/main.c
+++ b/main.c
@@ -803,13 +803,12 @@ static void mwl_remove(struct pci_dev *pdev)
priv = hw->priv;
mwl_wl_deinit(priv);
- pci_set_drvdata(pdev, NULL);
- ieee80211_free_hw(hw);
- pci_disable_device(pdev);
-
#ifdef CONFIG_DEBUG_FS
mwl_debugfs_remove(hw);
#endif
+ ieee80211_free_hw(hw);
+ pci_set_drvdata(pdev, NULL);
+ pci_disable_device(pdev);
}
static struct pci_driver mwl_pci_driver = {