Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8543da6672b0994921f014f2250e27ae81645580
Commit:     8543da6672b0994921f014f2250e27ae81645580
Parent:     813820b9b9adb98d4ad3cd7434eb662b0fc15684
Author:     Auke Kok <[EMAIL PROTECTED]>
AuthorDate: Wed Dec 12 16:30:42 2007 -0800
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Fri Dec 14 15:26:07 2007 -0500

    e100: free IRQ to remove warningwhenrebooting
    
    Adapted from Ian Wienand <[EMAIL PROTECTED]>
    
    Explicitly free the IRQ before removing the device to remove a
    warning "Destroying IRQ without calling free_irq"
    
    Signed-off-by: Auke Kok <[EMAIL PROTECTED]>
    Cc: Ian Wienand <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 drivers/net/e100.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/net/e100.c b/drivers/net/e100.c
index e1c8a0d..2b06e4b 100644
--- a/drivers/net/e100.c
+++ b/drivers/net/e100.c
@@ -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;
@@ -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);
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to