|
@@ -2009,7 +2009,6 @@ fail2:
|
|
|
fail1:
|
|
|
if (hw)
|
|
|
ieee80211_free_hw(hw);
|
|
|
- pci_set_drvdata(pdev, NULL);
|
|
|
pci_disable_device(pdev);
|
|
|
|
|
|
return err;
|
|
@@ -2064,8 +2063,6 @@ void rtl_pci_disconnect(struct pci_dev *pdev)
|
|
|
|
|
|
rtl_pci_disable_aspm(hw);
|
|
|
|
|
|
- pci_set_drvdata(pdev, NULL);
|
|
|
-
|
|
|
ieee80211_free_hw(hw);
|
|
|
}
|
|
|
EXPORT_SYMBOL(rtl_pci_disconnect);
|