]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfc9794b3970f22b9e63b646ec0daa2716987e3f1
tree78b33bf8816bc0df7333ae765f5d8315b8ae799e
parent24125577796efd2bdf8045dcfa16e6d6d6c944d4
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