diff options
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 52eae9f096e2..06b02c59d90b 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -9534,7 +9534,7 @@ static int __devinit tg3_get_invariants(struct tg3 *tp) | |||
9534 | tp->write32_rx_mbox = tg3_write_indirect_mbox; | 9534 | tp->write32_rx_mbox = tg3_write_indirect_mbox; |
9535 | 9535 | ||
9536 | iounmap(tp->regs); | 9536 | iounmap(tp->regs); |
9537 | tp->regs = 0; | 9537 | tp->regs = NULL; |
9538 | 9538 | ||
9539 | pci_read_config_word(tp->pdev, PCI_COMMAND, &pci_cmd); | 9539 | pci_read_config_word(tp->pdev, PCI_COMMAND, &pci_cmd); |
9540 | pci_cmd &= ~PCI_COMMAND_MEMORY; | 9540 | pci_cmd &= ~PCI_COMMAND_MEMORY; |
@@ -10682,7 +10682,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev, | |||
10682 | err_out_iounmap: | 10682 | err_out_iounmap: |
10683 | if (tp->regs) { | 10683 | if (tp->regs) { |
10684 | iounmap(tp->regs); | 10684 | iounmap(tp->regs); |
10685 | tp->regs = 0; | 10685 | tp->regs = NULL; |
10686 | } | 10686 | } |
10687 | 10687 | ||
10688 | err_out_free_dev: | 10688 | err_out_free_dev: |
@@ -10707,7 +10707,7 @@ static void __devexit tg3_remove_one(struct pci_dev *pdev) | |||
10707 | unregister_netdev(dev); | 10707 | unregister_netdev(dev); |
10708 | if (tp->regs) { | 10708 | if (tp->regs) { |
10709 | iounmap(tp->regs); | 10709 | iounmap(tp->regs); |
10710 | tp->regs = 0; | 10710 | tp->regs = NULL; |
10711 | } | 10711 | } |
10712 | free_netdev(dev); | 10712 | free_netdev(dev); |
10713 | pci_release_regions(pdev); | 10713 | pci_release_regions(pdev); |