aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/netxen/netxen_nic_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c
index b2fc2bccc396..1bf3d494b92f 100644
--- a/drivers/net/netxen/netxen_nic_main.c
+++ b/drivers/net/netxen/netxen_nic_main.c
@@ -525,6 +525,8 @@ static void __devexit netxen_nic_remove(struct pci_dev *pdev)
525 if (adapter == NULL) 525 if (adapter == NULL)
526 return; 526 return;
527 527
528 if (adapter->irq)
529 free_irq(adapter->irq, adapter);
528 netxen_nic_stop_all_ports(adapter); 530 netxen_nic_stop_all_ports(adapter);
529 /* leave the hw in the same state as reboot */ 531 /* leave the hw in the same state as reboot */
530 netxen_pinit_from_rom(adapter, 0); 532 netxen_pinit_from_rom(adapter, 0);
@@ -672,8 +674,6 @@ static int netxen_nic_close(struct net_device *netdev)
672 674
673 if (!adapter->active_ports) { 675 if (!adapter->active_ports) {
674 netxen_nic_disable_int(adapter); 676 netxen_nic_disable_int(adapter);
675 if (adapter->irq)
676 free_irq(adapter->irq, adapter);
677 cmd_buff = adapter->cmd_buf_arr; 677 cmd_buff = adapter->cmd_buf_arr;
678 for (i = 0; i < adapter->max_tx_desc_count; i++) { 678 for (i = 0; i < adapter->max_tx_desc_count; i++) {
679 buffrag = cmd_buff->frag_array; 679 buffrag = cmd_buff->frag_array;