Skip to content

Commit

Permalink
e100: free IRQ to remove warningwhenrebooting
Browse files Browse the repository at this point in the history
Adapted from Ian Wienand <ianw@gelato.unsw.edu.au>

Explicitly free the IRQ before removing the device to remove a
warning "Destroying IRQ without calling free_irq"

Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Cc: Ian Wienand <ianw@gelato.unsw.edu.au>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Auke Kok authored and Jeff Garzik committed Dec 14, 2007
1 parent 813820b commit 8543da6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/net/e100.c
Original file line number Diff line number Diff line change
Expand Up @@ -2737,8 +2737,9 @@ static int e100_suspend(struct pci_dev *pdev, pm_message_t state)
pci_enable_wake(pdev, PCI_D3cold, 0);
}

pci_disable_device(pdev);
free_irq(pdev->irq, netdev);

pci_disable_device(pdev);
pci_set_power_state(pdev, PCI_D3hot);

return 0;
Expand Down Expand Up @@ -2780,6 +2781,8 @@ static void e100_shutdown(struct pci_dev *pdev)
pci_enable_wake(pdev, PCI_D3cold, 0);
}

free_irq(pdev->irq, netdev);

pci_disable_device(pdev);
pci_set_power_state(pdev, PCI_D3hot);
}
Expand Down

0 comments on commit 8543da6

Please sign in to comment.