Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235863
b: refs/heads/master
c: fb53c2b
h: refs/heads/master
i:
  235861: e45eea0
  235859: eabfa23
  235855: c189bd0
v: v3
  • Loading branch information
Mike McCormack authored and Greg Kroah-Hartman committed Feb 9, 2011
1 parent 4ad6330 commit 0299b6d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 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: 80a4dead575f118267f35afc722a182c0edc9bcf
refs/heads/master: fb53c2b73f4fc1cfd3d5548b6efbb00b1d7de3a7
27 changes: 9 additions & 18 deletions trunk/drivers/staging/rtl8192e/r8192E_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -5375,12 +5375,13 @@ static void __devexit rtl8192_pci_disconnect(struct pci_dev *pdev)
{
struct net_device *dev = pci_get_drvdata(pdev);
struct r8192_priv *priv ;
u32 i;

if(dev){
if (dev) {

unregister_netdev(dev);

priv=ieee80211_priv(dev);
priv = ieee80211_priv(dev);

rtl8192_proc_remove_one(dev);

Expand All @@ -5390,27 +5391,17 @@ static void __devexit rtl8192_pci_disconnect(struct pci_dev *pdev)
vfree(priv->pFirmware);
priv->pFirmware = NULL;
}
// priv->rf_close(dev);
// rtl8192_usb_deleteendpoints(dev);
destroy_workqueue(priv->priv_wq);
/* redundant with rtl8192_down */
// rtl8192_irq_disable(dev);
// rtl8192_reset(dev);
// mdelay(10);
{
u32 i;
/* free tx/rx rings */
rtl8192_free_rx_ring(dev);
for (i = 0; i < MAX_TX_QUEUE_COUNT; i++) {
rtl8192_free_tx_ring(dev, i);
}
}
if(priv->irq){

/* free tx/rx rings */
rtl8192_free_rx_ring(dev);
for (i = 0; i < MAX_TX_QUEUE_COUNT; i++)
rtl8192_free_tx_ring(dev, i);

if (priv->irq) {
printk("Freeing irq %d\n",dev->irq);
free_irq(dev->irq, dev);
priv->irq=0;

}

#ifdef CONFIG_RTL8180_IO_MAP
Expand Down

0 comments on commit 0299b6d

Please sign in to comment.