diff options
Diffstat (limited to 'drivers/net/pcnet32.c')
-rw-r--r-- | drivers/net/pcnet32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/pcnet32.c b/drivers/net/pcnet32.c index 4eb322e5273d..d0d5585114b0 100644 --- a/drivers/net/pcnet32.c +++ b/drivers/net/pcnet32.c | |||
@@ -2006,7 +2006,7 @@ pcnet32_probe1(unsigned long ioaddr, int shared, struct pci_dev *pdev) | |||
2006 | err_free_ring: | 2006 | err_free_ring: |
2007 | pcnet32_free_ring(dev); | 2007 | pcnet32_free_ring(dev); |
2008 | err_free_consistent: | 2008 | err_free_consistent: |
2009 | pci_free_consistent(lp->pci_dev, sizeof(*lp->init_block), | 2009 | pci_free_consistent(lp->pci_dev, sizeof(*lp->init_block), |
2010 | lp->init_block, lp->init_dma_addr); | 2010 | lp->init_block, lp->init_dma_addr); |
2011 | err_free_netdev: | 2011 | err_free_netdev: |
2012 | free_netdev(dev); | 2012 | free_netdev(dev); |
@@ -3006,7 +3006,7 @@ static void __devexit pcnet32_remove_one(struct pci_dev *pdev) | |||
3006 | unregister_netdev(dev); | 3006 | unregister_netdev(dev); |
3007 | pcnet32_free_ring(dev); | 3007 | pcnet32_free_ring(dev); |
3008 | release_region(dev->base_addr, PCNET32_TOTAL_SIZE); | 3008 | release_region(dev->base_addr, PCNET32_TOTAL_SIZE); |
3009 | pci_free_consistent(lp->pci_dev, sizeof(*lp->init_block), | 3009 | pci_free_consistent(lp->pci_dev, sizeof(*lp->init_block), |
3010 | lp->init_block, lp->init_dma_addr); | 3010 | lp->init_block, lp->init_dma_addr); |
3011 | free_netdev(dev); | 3011 | free_netdev(dev); |
3012 | pci_disable_device(pdev); | 3012 | pci_disable_device(pdev); |
@@ -3089,7 +3089,7 @@ static void __exit pcnet32_cleanup_module(void) | |||
3089 | unregister_netdev(pcnet32_dev); | 3089 | unregister_netdev(pcnet32_dev); |
3090 | pcnet32_free_ring(pcnet32_dev); | 3090 | pcnet32_free_ring(pcnet32_dev); |
3091 | release_region(pcnet32_dev->base_addr, PCNET32_TOTAL_SIZE); | 3091 | release_region(pcnet32_dev->base_addr, PCNET32_TOTAL_SIZE); |
3092 | pci_free_consistent(lp->pci_dev, sizeof(*lp->init_block), | 3092 | pci_free_consistent(lp->pci_dev, sizeof(*lp->init_block), |
3093 | lp->init_block, lp->init_dma_addr); | 3093 | lp->init_block, lp->init_dma_addr); |
3094 | free_netdev(pcnet32_dev); | 3094 | free_netdev(pcnet32_dev); |
3095 | pcnet32_dev = next_dev; | 3095 | pcnet32_dev = next_dev; |