aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/trident/trident_main.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-11 05:26:48 -0500
committerTakashi Iwai <tiwai@suse.de>2015-01-11 05:26:48 -0500
commit9e5947465d72ef1b3a88104474ab2adf78837220 (patch)
tree2e71fa8e496b8e047e5a90e81b685ed1f8d3ed7f /sound/pci/trident/trident_main.c
parent624afe4dc9a08992b200046dfe8a61f19bab74ab (diff)
parent3e41c9b5a1ca2acfd9306a918fe3903f02eb89ca (diff)
Merge branch 'topic/pci-cleanup' into for-next
Diffstat (limited to 'sound/pci/trident/trident_main.c')
-rw-r--r--sound/pci/trident/trident_main.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/sound/pci/trident/trident_main.c b/sound/pci/trident/trident_main.c
index c380c99407c0..2870cbf8cee0 100644
--- a/sound/pci/trident/trident_main.c
+++ b/sound/pci/trident/trident_main.c
@@ -3911,7 +3911,6 @@ static void snd_trident_clear_voices(struct snd_trident * trident, unsigned shor
3911#ifdef CONFIG_PM_SLEEP 3911#ifdef CONFIG_PM_SLEEP
3912static int snd_trident_suspend(struct device *dev) 3912static int snd_trident_suspend(struct device *dev)
3913{ 3913{
3914 struct pci_dev *pci = to_pci_dev(dev);
3915 struct snd_card *card = dev_get_drvdata(dev); 3914 struct snd_card *card = dev_get_drvdata(dev);
3916 struct snd_trident *trident = card->private_data; 3915 struct snd_trident *trident = card->private_data;
3917 3916
@@ -3923,28 +3922,14 @@ static int snd_trident_suspend(struct device *dev)
3923 3922
3924 snd_ac97_suspend(trident->ac97); 3923 snd_ac97_suspend(trident->ac97);
3925 snd_ac97_suspend(trident->ac97_sec); 3924 snd_ac97_suspend(trident->ac97_sec);
3926
3927 pci_disable_device(pci);
3928 pci_save_state(pci);
3929 pci_set_power_state(pci, PCI_D3hot);
3930 return 0; 3925 return 0;
3931} 3926}
3932 3927
3933static int snd_trident_resume(struct device *dev) 3928static int snd_trident_resume(struct device *dev)
3934{ 3929{
3935 struct pci_dev *pci = to_pci_dev(dev);
3936 struct snd_card *card = dev_get_drvdata(dev); 3930 struct snd_card *card = dev_get_drvdata(dev);
3937 struct snd_trident *trident = card->private_data; 3931 struct snd_trident *trident = card->private_data;
3938 3932
3939 pci_set_power_state(pci, PCI_D0);
3940 pci_restore_state(pci);
3941 if (pci_enable_device(pci) < 0) {
3942 dev_err(dev, "pci_enable_device failed, disabling device\n");
3943 snd_card_disconnect(card);
3944 return -EIO;
3945 }
3946 pci_set_master(pci);
3947
3948 switch (trident->device) { 3933 switch (trident->device) {
3949 case TRIDENT_DEVICE_ID_DX: 3934 case TRIDENT_DEVICE_ID_DX:
3950 snd_trident_4d_dx_init(trident); 3935 snd_trident_4d_dx_init(trident);