ASoC: SOF: control: use pm_runtime_resume_and_get()
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 26 Apr 2022 18:41:03 +0000 (13:41 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 27 Apr 2022 13:15:24 +0000 (14:15 +0100)
commitbf0736e5d4644eb9238a1136625e09126721d2e3
tree1b81f5c2f7dfa3f9d5bf72867e9caf31ebdd752f
parent6cefb6264277c073030a3b2d91ba6b28593b4c89
ASoC: SOF: control: use pm_runtime_resume_and_get()

Use pm_runtime_resume_and_get() to replace the pm_runtime_get_sync() and
pm_runtime_put_noidle() pattern.

No functional changes.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220426184106.102636-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/control.c