Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109455
b: refs/heads/master
c: 0b124c3
h: refs/heads/master
i:
  109453: eb8ae38
  109451: 51283ac
  109447: 96d71e3
  109439: 7ae2b0c
v: v3
  • Loading branch information
Gregory Greenman authored and John W. Linville committed Sep 3, 2008
1 parent 1729e68 commit ffc47da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d535311ecbba0d692b5f1278b8bcb2581c3482e0
refs/heads/master: 0b124c31838bcf0459708aa91ce859582c7d3ca1
11 changes: 7 additions & 4 deletions trunk/drivers/net/wireless/iwlwifi/iwl-agn.c
Original file line number Diff line number Diff line change
Expand Up @@ -4372,15 +4372,18 @@ static void __devexit iwl4965_pci_remove(struct pci_dev *pdev)
iwl_dbgfs_unregister(priv);
sysfs_remove_group(&pdev->dev.kobj, &iwl4965_attribute_group);

/* ieee80211_unregister_hw call wil cause iwl4965_mac_stop to
* to be called and iwl4965_down since we are removing the device
* we need to set STATUS_EXIT_PENDING bit.
*/
set_bit(STATUS_EXIT_PENDING, &priv->status);
if (priv->mac80211_registered) {
ieee80211_unregister_hw(priv->hw);
priv->mac80211_registered = 0;
} else {
iwl4965_down(priv);
}

set_bit(STATUS_EXIT_PENDING, &priv->status);

iwl4965_down(priv);

/* make sure we flush any pending irq or
* tasklet for the driver
*/
Expand Down

0 comments on commit ffc47da

Please sign in to comment.