aboutsummaryrefslogtreecommitdiff
path: root/sound/ac97_bus.c
diff options
context:
space:
mode:
authorMartin Langer <martin-langer@gmx.de>2007-02-05 13:02:35 +0100
committerJaroslav Kysela <perex@suse.cz>2007-02-09 09:03:54 +0100
commit66e27788a33636cf0d9bf22eb9d56a7f4ffa3a84 (patch)
tree4e7148bbd317bd157ef983a6e84c6d8ecc4079bf /sound/ac97_bus.c
parentd0b0fac14edf81dc62615cd757e7c73d2059152c (diff)
[ALSA] ac97_bus power management
This patch adds CONFIG_PM to the ac97_bus driver. Signed-off-by: Martin Langer <martin-langer@gmx.de> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
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 66de2c2f155..7fa37e15f19 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)
return 1;
}
+#ifdef CONFIG_PM
static int ac97_bus_suspend(struct device *dev, pm_message_t state)
{
int ret = 0;
@@ -45,12 +46,15 @@ static int ac97_bus_resume(struct device *dev)
return ret;
}
+#endif /* CONFIG_PM */
struct bus_type ac97_bus_type = {
.name = "ac97",
.match = ac97_bus_match,
+#ifdef CONFIG_PM
.suspend = ac97_bus_suspend,
.resume = ac97_bus_resume,
+#endif /* CONFIG_PM */
};
static int __init ac97_bus_init(void)