ALSA: ac97: Switch to dev_pm_ops
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 21 Aug 2015 07:48:33 +0000 (09:48 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 21 Aug 2015 17:27:23 +0000 (19:27 +0200)
commit9bc07dfbcde5b6f3aefa06b902b47eef9769d260
treee559087d82895098a2c7b78a074857dadc675ddb
parent00833d70ca29a9d60c694b9475a9d3327ed9461e
ALSA: ac97: Switch to dev_pm_ops

Convert the ac97_bus from legacy suspend/resume callbacks to dev_pm_ops.

Since there isn't anything special to do at the bus level the bus driver
does not have to implement any callbacks. The device driver core will
automatically pick up and execute the device's PM ops.

As there is only a single AC'97 driver implementing suspend and resume,
update both the core and driver at the same time to avoid unnecessary code
churn.

While we are at it also drop the ifdefs around the suspend/resume functions
to increase compile test coverage.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
drivers/input/touchscreen/wm97xx-core.c
sound/ac97_bus.c