aboutsummaryrefslogtreecommitdiffstats
path: root/sound/ac97_bus.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/ac97_bus.c')
-rw-r--r--sound/ac97_bus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/ac97_bus.c b/sound/ac97_bus.c
index 66de2c2f1554..7fa37e15f196 100644
--- a/sound/ac97_bus.c
+++ b/sound/ac97_bus.c
@@ -26,6 +26,7 @@ static int ac97_bus_match(struct device *dev, struct device_driver *drv)
26 return 1; 26 return 1;
27} 27}
28 28
29#ifdef CONFIG_PM
29static int ac97_bus_suspend(struct device *dev, pm_message_t state) 30static int ac97_bus_suspend(struct device *dev, pm_message_t state)
30{ 31{
31 int ret = 0; 32 int ret = 0;
@@ -45,12 +46,15 @@ static int ac97_bus_resume(struct device *dev)
45 46
46 return ret; 47 return ret;
47} 48}
49#endif /* CONFIG_PM */
48 50
49struct bus_type ac97_bus_type = { 51struct bus_type ac97_bus_type = {
50 .name = "ac97", 52 .name = "ac97",
51 .match = ac97_bus_match, 53 .match = ac97_bus_match,
54#ifdef CONFIG_PM
52 .suspend = ac97_bus_suspend, 55 .suspend = ac97_bus_suspend,
53 .resume = ac97_bus_resume, 56 .resume = ac97_bus_resume,
57#endif /* CONFIG_PM */
54}; 58};
55 59
56static int __init ac97_bus_init(void) 60static int __init ac97_bus_init(void)