Skip to content

Commit

Permalink
[ALSA] ac97_bus power management
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Martin Langer authored and Jaroslav Kysela committed Feb 9, 2007
1 parent d0b0fac commit 66e2778
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sound/ac97_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit 66e2778

Please sign in to comment.