ASoC: Always run default suspend/resume code
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 4 Sep 2014 17:44:07 +0000 (19:44 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 4 Sep 2014 19:10:25 +0000 (20:10 +0100)
commita80932979a72ef9d4e66a69520c7588cc6de5699
tree78b33bf8816bc0df7333ae765f5d8315b8ae799e
parent86dbf2ac6fcb2d2932d4610f2dfe0954aa0633f7
ASoC: Always run default suspend/resume code

We do a bit more than just running the callbacks during suspend and resume
these days (e.g. call regcache_mark_dirty() during suspend). But this is
only when suspend and resume callbacks are specified for the driver,
otherwise nothing is done. This means that drivers which don't want to do
anything special during suspend and resume, but still want the standard
operations to run, need to provide empty suspend and resume callback
functions (rather than no callbacks). This patch updates the suspend and
resume code to always run standard sequence regardless of whether suspend
and resume handlers are provided.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c