mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 01:10:28 +00:00
iwl3945: release resources before shutting down
Release resource before shutting down and notify upper stack. Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
90a30a021e
commit
d552bfb652
@ -7722,7 +7722,12 @@ static void __devexit iwl3945_pci_remove(struct pci_dev *pdev)
|
|||||||
|
|
||||||
set_bit(STATUS_EXIT_PENDING, &priv->status);
|
set_bit(STATUS_EXIT_PENDING, &priv->status);
|
||||||
|
|
||||||
iwl3945_down(priv);
|
if (priv->mac80211_registered) {
|
||||||
|
ieee80211_unregister_hw(priv->hw);
|
||||||
|
priv->mac80211_registered = 0;
|
||||||
|
} else {
|
||||||
|
iwl3945_down(priv);
|
||||||
|
}
|
||||||
|
|
||||||
/* make sure we flush any pending irq or
|
/* make sure we flush any pending irq or
|
||||||
* tasklet for the driver
|
* tasklet for the driver
|
||||||
@ -7745,9 +7750,6 @@ static void __devexit iwl3945_pci_remove(struct pci_dev *pdev)
|
|||||||
iwl3945_unset_hw_params(priv);
|
iwl3945_unset_hw_params(priv);
|
||||||
iwl3945_clear_stations_table(priv);
|
iwl3945_clear_stations_table(priv);
|
||||||
|
|
||||||
if (priv->mac80211_registered)
|
|
||||||
ieee80211_unregister_hw(priv->hw);
|
|
||||||
|
|
||||||
/*netif_stop_queue(dev); */
|
/*netif_stop_queue(dev); */
|
||||||
flush_workqueue(priv->workqueue);
|
flush_workqueue(priv->workqueue);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user