ALSA: ac97: Switch to dev_pm_ops
[sfrench/cifs-2.6.git] / sound / ac97_bus.c
index 2b50cbe6aca90089a12cd9b8f774ec59690bbdf4..57a6dfc4b6947e2b4f545f8e4a2dec6e22ce17c7 100644 (file)
@@ -27,35 +27,9 @@ 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;
-
-       if (dev->driver && dev->driver->suspend)
-               ret = dev->driver->suspend(dev, state);
-
-       return ret;
-}
-
-static int ac97_bus_resume(struct device *dev)
-{
-       int ret = 0;
-
-       if (dev->driver && dev->driver->resume)
-               ret = dev->driver->resume(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)