ASoC: codecs: rtq9128: Fix PM_RUNTIME usage
authorChiYuan Huang <cy_huang@richtek.com>
Fri, 29 Dec 2023 01:46:01 +0000 (09:46 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 5 Jan 2024 15:20:46 +0000 (15:20 +0000)
commit35040410372ca27a33cec8382d42c90b6b6c99f6
tree0a686c4f9349521c43d51f4371173c193b5d4158
parent67508b874844b80ac49f70b78d67036c28b9fe7e
ASoC: codecs: rtq9128: Fix PM_RUNTIME usage

If 'pm_runtime_resume_and_get' is used, must check the return value to
prevent the active count not matched problem.

Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
Link: https://msgid.link/r/bebd9e2bed9e0528a7fd9c528d785da02caf4f1a.1703813842.git.cy_huang@richtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rtq9128.c