aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/ac97/ac97_bus.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/sound/pci/ac97/ac97_bus.c b/sound/pci/ac97/ac97_bus.c
index 6f0e4bd83aac..becbc420ba41 100644
--- a/sound/pci/ac97/ac97_bus.c
+++ b/sound/pci/ac97/ac97_bus.c
@@ -30,13 +30,8 @@ static int ac97_bus_suspend(struct device *dev, pm_message_t state)
30{ 30{
31 int ret = 0; 31 int ret = 0;
32 32
33 if (dev->driver && dev->driver->suspend) { 33 if (dev->driver && dev->driver->suspend)
34 ret = dev->driver->suspend(dev, state, SUSPEND_DISABLE); 34 ret = dev->driver->suspend(dev, state, SUSPEND_POWER_DOWN);
35 if (ret == 0)
36 ret = dev->driver->suspend(dev, state, SUSPEND_SAVE_STATE);
37 if (ret == 0)
38 ret = dev->driver->suspend(dev, state, SUSPEND_POWER_DOWN);
39 }
40 return ret; 35 return ret;
41} 36}
42 37
@@ -44,13 +39,8 @@ static int ac97_bus_resume(struct device *dev)
44{ 39{
45 int ret = 0; 40 int ret = 0;
46 41
47 if (dev->driver && dev->driver->resume) { 42 if (dev->driver && dev->driver->resume)
48 ret = dev->driver->resume(dev, RESUME_POWER_ON); 43 ret = dev->driver->resume(dev, RESUME_POWER_ON);
49 if (ret == 0)
50 ret = dev->driver->resume(dev, RESUME_RESTORE_STATE);
51 if (ret == 0)
52 ret = dev->driver->resume(dev, RESUME_ENABLE);
53 }
54 return ret; 44 return ret;
55} 45}
56 46