Commit 0b154e97 authored by Stephen Hemminger's avatar Stephen Hemminger

[NET]: free_netdev - tokenring changes.

s/kfree/free_netdev/ as appropriate for tokenring drivers.
parent d65933a3
...@@ -1787,7 +1787,7 @@ static void __devexit xl_remove_one (struct pci_dev *pdev) ...@@ -1787,7 +1787,7 @@ static void __devexit xl_remove_one (struct pci_dev *pdev)
iounmap(xl_priv->xl_mmio) ; iounmap(xl_priv->xl_mmio) ;
pci_release_regions(pdev) ; pci_release_regions(pdev) ;
pci_set_drvdata(pdev,NULL) ; pci_set_drvdata(pdev,NULL) ;
kfree(dev); free_netdev(dev);
return ; return ;
} }
......
...@@ -443,7 +443,7 @@ static void __devexit abyss_detach (struct pci_dev *pdev) ...@@ -443,7 +443,7 @@ static void __devexit abyss_detach (struct pci_dev *pdev)
release_region(dev->base_addr-0x10, ABYSS_IO_EXTENT); release_region(dev->base_addr-0x10, ABYSS_IO_EXTENT);
free_irq(dev->irq, dev); free_irq(dev->irq, dev);
tmsdev_term(dev); tmsdev_term(dev);
kfree(dev); free_netdev(dev);
pci_set_drvdata(pdev, NULL); pci_set_drvdata(pdev, NULL);
} }
......
...@@ -1975,7 +1975,7 @@ static void __exit ibmtr_cleanup(void) ...@@ -1975,7 +1975,7 @@ static void __exit ibmtr_cleanup(void)
iounmap((u32 *)ti->sram_virt); iounmap((u32 *)ti->sram_virt);
} }
#endif #endif
kfree(dev_ibmtr[i]); free_netdev(dev_ibmtr[i]);
dev_ibmtr[i] = NULL; dev_ibmtr[i] = NULL;
} }
} }
......
...@@ -433,7 +433,7 @@ static void __devexit streamer_remove_one(struct pci_dev *pdev) ...@@ -433,7 +433,7 @@ static void __devexit streamer_remove_one(struct pci_dev *pdev)
/* shouldn't we do iounmap here? */ /* shouldn't we do iounmap here? */
release_region(pci_resource_start(pdev, 0), pci_resource_len(pdev,0)); release_region(pci_resource_start(pdev, 0), pci_resource_len(pdev,0));
release_mem_region(pci_resource_start(pdev, 1), pci_resource_len(pdev,1)); release_mem_region(pci_resource_start(pdev, 1), pci_resource_len(pdev,1));
kfree(dev); free_netdev(dev);
pci_set_drvdata(pdev, NULL); pci_set_drvdata(pdev, NULL);
} }
......
...@@ -774,7 +774,7 @@ static void __exit madgemc_exit(void) ...@@ -774,7 +774,7 @@ static void __exit madgemc_exit(void)
release_region(dev->base_addr-MADGEMC_SIF_OFFSET, MADGEMC_IO_EXTENT); release_region(dev->base_addr-MADGEMC_SIF_OFFSET, MADGEMC_IO_EXTENT);
free_irq(dev->irq, dev); free_irq(dev->irq, dev);
tmsdev_term(dev); tmsdev_term(dev);
kfree(dev); free_netdev(dev);
this_card = madgemc_card_list; this_card = madgemc_card_list;
madgemc_card_list = this_card->next; madgemc_card_list = this_card->next;
kfree(this_card); kfree(this_card);
......
...@@ -1779,7 +1779,7 @@ static void __devexit olympic_remove_one(struct pci_dev *pdev) ...@@ -1779,7 +1779,7 @@ static void __devexit olympic_remove_one(struct pci_dev *pdev)
iounmap(olympic_priv->olympic_lap) ; iounmap(olympic_priv->olympic_lap) ;
pci_release_regions(pdev) ; pci_release_regions(pdev) ;
pci_set_drvdata(pdev,NULL) ; pci_set_drvdata(pdev,NULL) ;
kfree(dev) ; free_netdev(dev) ;
} }
static struct pci_driver olympic_driver = { static struct pci_driver olympic_driver = {
......
...@@ -436,7 +436,7 @@ void cleanup_module(void) ...@@ -436,7 +436,7 @@ void cleanup_module(void)
free_irq(dev->irq, dev); free_irq(dev->irq, dev);
free_dma(dev->dma); free_dma(dev->dma);
tmsdev_term(dev); tmsdev_term(dev);
kfree(dev); free_netdev(dev);
this_card = proteon_card_list; this_card = proteon_card_list;
proteon_card_list = this_card->next; proteon_card_list = this_card->next;
kfree(this_card); kfree(this_card);
......
...@@ -449,7 +449,7 @@ void cleanup_module(void) ...@@ -449,7 +449,7 @@ void cleanup_module(void)
free_irq(dev->irq, dev); free_irq(dev->irq, dev);
free_dma(dev->dma); free_dma(dev->dma);
tmsdev_term(dev); tmsdev_term(dev);
kfree(dev); free_netdev(dev);
this_card = sk_isa_card_list; this_card = sk_isa_card_list;
sk_isa_card_list = this_card->next; sk_isa_card_list = this_card->next;
kfree(this_card); kfree(this_card);
......
...@@ -5730,7 +5730,7 @@ void cleanup_module(void) ...@@ -5730,7 +5730,7 @@ void cleanup_module(void)
if (dev) { if (dev) {
unregister_netdev(dev); unregister_netdev(dev);
cleanup_card(dev); cleanup_card(dev);
kfree(dev); free_netdev(dev);
} }
} }
} }
......
...@@ -229,7 +229,7 @@ static void __devexit tms_pci_detach (struct pci_dev *pdev) ...@@ -229,7 +229,7 @@ static void __devexit tms_pci_detach (struct pci_dev *pdev)
release_region(dev->base_addr, TMS_PCI_IO_EXTENT); release_region(dev->base_addr, TMS_PCI_IO_EXTENT);
free_irq(dev->irq, dev); free_irq(dev->irq, dev);
tmsdev_term(dev); tmsdev_term(dev);
kfree(dev); free_netdev(dev);
pci_set_drvdata(pdev, NULL); pci_set_drvdata(pdev, NULL);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment