aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Copeland <me@bobcopeland.com>2009-07-04 12:59:54 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-10 15:02:29 -0400
commit0d0cd72fa1e6bfd419c99478ec70b4877ed0ef86 (patch)
treeaa48f65b6725ee5c5bf2582a09eed4dc30e9b69f
parent88f6bfe1829d67bea37b060d53131b2b96ebc8ac (diff)
ath5k: do not release irq across suspend/resume
Paraphrasing Rafael J. Wysocki: "drivers should not release PCI IRQs in suspend." Doing so causes a warning during suspend/resume on some platforms. Cc: Rafael J. Wysocki <rjw@sisk.pl> Reported-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk> Signed-off-by: Bob Copeland <me@bobcopeland.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath5k/base.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
index 482932979c9b..3f55e90c43fc 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -674,7 +674,6 @@ ath5k_pci_suspend(struct pci_dev *pdev, pm_message_t state)
674 674
675 ath5k_led_off(sc); 675 ath5k_led_off(sc);
676 676
677 free_irq(pdev->irq, sc);
678 pci_save_state(pdev); 677 pci_save_state(pdev);
679 pci_disable_device(pdev); 678 pci_disable_device(pdev);
680 pci_set_power_state(pdev, PCI_D3hot); 679 pci_set_power_state(pdev, PCI_D3hot);
@@ -702,18 +701,8 @@ ath5k_pci_resume(struct pci_dev *pdev)
702 */ 701 */
703 pci_write_config_byte(pdev, 0x41, 0); 702 pci_write_config_byte(pdev, 0x41, 0);
704 703
705 err = request_irq(pdev->irq, ath5k_intr, IRQF_SHARED, "ath", sc);
706 if (err) {
707 ATH5K_ERR(sc, "request_irq failed\n");
708 goto err_no_irq;
709 }
710
711 ath5k_led_enable(sc); 704 ath5k_led_enable(sc);
712 return 0; 705 return 0;
713
714err_no_irq:
715 pci_disable_device(pdev);
716 return err;
717} 706}
718#endif /* CONFIG_PM */ 707#endif /* CONFIG_PM */
719 708