Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290743
b: refs/heads/master
c: 07590f0
h: refs/heads/master
i:
  290741: 3df5a7d
  290739: a3d5400
  290735: 00f8231
v: v3
  • Loading branch information
Emmanuel Grumbach authored and Wey-Yi Guy committed Feb 27, 2012
1 parent f6979bd commit 23be331
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 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: 5c58edc63edd6cd8097e2bee90e2d341e33bcd60
refs/heads/master: 07590f080d5f29e33158b22f7ad6079b85d87609
7 changes: 7 additions & 0 deletions trunk/drivers/net/wireless/iwlwifi/iwl-drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,10 @@ int iwl_drv_start(struct iwl_shared *shrd,
return ret;
}

void iwl_drv_stop(struct iwl_shared *shrd)
{
iwl_remove(shrd->priv);

kfree(shrd->nic);
}

13 changes: 13 additions & 0 deletions trunk/drivers/net/wireless/iwlwifi/iwl-drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,17 @@
int iwl_drv_start(struct iwl_shared *shrd,
struct iwl_trans *trans, struct iwl_cfg *cfg);

/**
* iwl_drv_stop - stop the drv
*
* @shrd: the shrd area
*
* TODO: review the parameters given to this function
*
* Stop the driver. This should be called by bus specific system flows
* implementations. For example, the bus specific remove function should first
* call this function and then do the bus related operations only.
*/
void iwl_drv_stop(struct iwl_shared *shrd);

#endif /* __iwl_drv_h__ */
3 changes: 1 addition & 2 deletions trunk/drivers/net/wireless/iwlwifi/iwl-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,11 @@ static void __devexit iwl_pci_remove(struct pci_dev *pdev)
struct iwl_bus *bus = pci_get_drvdata(pdev);
struct iwl_shared *shrd = bus->shrd;

iwl_remove(shrd->priv);
iwl_drv_stop(shrd);
iwl_trans_free(shrd->trans);

pci_set_drvdata(pdev, NULL);

kfree(bus->shrd->nic);
kfree(bus->shrd);
kfree(bus);
}
Expand Down

0 comments on commit 23be331

Please sign in to comment.