summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 79d1162..da1525e 100644
--- a/main.c
+++ b/main.c
@@ -799,11 +799,11 @@ static void mwl_remove(struct pci_dev *pdev)
priv = hw->priv;
mwl_wl_deinit(priv);
- pci_set_drvdata(pdev, NULL);
#ifdef CONFIG_DEBUG_FS
mwl_debugfs_remove(hw);
#endif
ieee80211_free_hw(hw);
+ pci_set_drvdata(pdev, NULL);
pci_disable_device(pdev);
}