diff options
-rw-r--r-- | main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -800,12 +800,11 @@ static void mwl_remove(struct pci_dev *pdev) 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_disable_device(pdev); } static struct pci_driver mwl_pci_driver = { |