aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-02-16 04:23:35 -0500
committerTakashi Iwai <tiwai@suse.de>2009-02-16 04:23:35 -0500
commite23573d7e350b06416f311f0129b945d33492001 (patch)
treefb401dcbd7871b88212c5d5afb1560a323b58ba5
parente2ea57a8df6da45f5f63ab7b56528a552f36fb72 (diff)
parentd14a7e0bfc4aed6452a436c9836903fbd1a5d6ad (diff)
Merge branch 'fix/hda' into topic/hda
-rw-r--r--sound/pci/hda/hda_intel.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index e853e4a8bde..c5a5dc5698a 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -1947,16 +1947,13 @@ static int azx_suspend(struct pci_dev *pci, pm_message_t state)
1947 return 0; 1947 return 0;
1948} 1948}
1949 1949
1950static int azx_resume_early(struct pci_dev *pci)
1951{
1952 return pci_restore_state(pci);
1953}
1954
1955static int azx_resume(struct pci_dev *pci) 1950static int azx_resume(struct pci_dev *pci)
1956{ 1951{
1957 struct snd_card *card = pci_get_drvdata(pci); 1952 struct snd_card *card = pci_get_drvdata(pci);
1958 struct azx *chip = card->private_data; 1953 struct azx *chip = card->private_data;
1959 1954
1955 pci_set_power_state(pci, PCI_D0);
1956 pci_restore_state(pci);
1960 if (pci_enable_device(pci) < 0) { 1957 if (pci_enable_device(pci) < 0) {
1961 printk(KERN_ERR "hda-intel: pci_enable_device failed, " 1958 printk(KERN_ERR "hda-intel: pci_enable_device failed, "
1962 "disabling device\n"); 1959 "disabling device\n");
@@ -2480,7 +2477,6 @@ static struct pci_driver driver = {
2480 .remove = __devexit_p(azx_remove), 2477 .remove = __devexit_p(azx_remove),
2481#ifdef CONFIG_PM 2478#ifdef CONFIG_PM
2482 .suspend = azx_suspend, 2479 .suspend = azx_suspend,
2483 .resume_early = azx_resume_early,
2484 .resume = azx_resume, 2480 .resume = azx_resume,
2485#endif 2481#endif
2486}; 2482};