aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/intel8x0.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/intel8x0.c')
-rw-r--r--sound/pci/intel8x0.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c
index 4a28252a42b9..2c5484eeb963 100644
--- a/sound/pci/intel8x0.c
+++ b/sound/pci/intel8x0.c
@@ -26,7 +26,7 @@
26 * 26 *
27 */ 27 */
28 28
29#include <asm/io.h> 29#include <linux/io.h>
30#include <linux/delay.h> 30#include <linux/delay.h>
31#include <linux/interrupt.h> 31#include <linux/interrupt.h>
32#include <linux/init.h> 32#include <linux/init.h>
@@ -2654,7 +2654,6 @@ static int snd_intel8x0_free(struct intel8x0 *chip)
2654 */ 2654 */
2655static int intel8x0_suspend(struct device *dev) 2655static int intel8x0_suspend(struct device *dev)
2656{ 2656{
2657 struct pci_dev *pci = to_pci_dev(dev);
2658 struct snd_card *card = dev_get_drvdata(dev); 2657 struct snd_card *card = dev_get_drvdata(dev);
2659 struct intel8x0 *chip = card->private_data; 2658 struct intel8x0 *chip = card->private_data;
2660 int i; 2659 int i;
@@ -2682,12 +2681,6 @@ static int intel8x0_suspend(struct device *dev)
2682 free_irq(chip->irq, chip); 2681 free_irq(chip->irq, chip);
2683 chip->irq = -1; 2682 chip->irq = -1;
2684 } 2683 }
2685 pci_disable_device(pci);
2686 pci_save_state(pci);
2687 /* The call below may disable built-in speaker on some laptops
2688 * after S2RAM. So, don't touch it.
2689 */
2690 /* pci_set_power_state(pci, PCI_D3hot); */
2691 return 0; 2684 return 0;
2692} 2685}
2693 2686
@@ -2698,14 +2691,6 @@ static int intel8x0_resume(struct device *dev)
2698 struct intel8x0 *chip = card->private_data; 2691 struct intel8x0 *chip = card->private_data;
2699 int i; 2692 int i;
2700 2693
2701 pci_set_power_state(pci, PCI_D0);
2702 pci_restore_state(pci);
2703 if (pci_enable_device(pci) < 0) {
2704 dev_err(dev, "pci_enable_device failed, disabling device\n");
2705 snd_card_disconnect(card);
2706 return -EIO;
2707 }
2708 pci_set_master(pci);
2709 snd_intel8x0_chip_init(chip, 0); 2694 snd_intel8x0_chip_init(chip, 0);
2710 if (request_irq(pci->irq, snd_intel8x0_interrupt, 2695 if (request_irq(pci->irq, snd_intel8x0_interrupt,
2711 IRQF_SHARED, KBUILD_MODNAME, chip)) { 2696 IRQF_SHARED, KBUILD_MODNAME, chip)) {