X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=sound%2Fac97_bus.c;h=a351dd0a09c7dc0eb53daa0b2cedb9c625ba9225;hb=7af2c460789a78d9c0d4dc7776fcb87acdc71052;hp=66de2c2f155470cc1977fe98e923f15eafa20379;hpb=e1036502e5263851259d147771226161e5ccc85a;p=safe%2Fjmp%2Flinux-2.6 diff --git a/sound/ac97_bus.c b/sound/ac97_bus.c index 66de2c2..a351dd0 100644 --- a/sound/ac97_bus.c +++ b/sound/ac97_bus.c @@ -15,6 +15,7 @@ #include #include #include +#include /* * Let drivers decide whether they want to support given codec from their @@ -26,6 +27,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 +47,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)