]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codecs: Fix error handling in power domain init and exit handlers
authorSrinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Tue, 22 Mar 2022 16:18:57 +0000 (21:48 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 5 Apr 2022 09:23:07 +0000 (10:23 +0100)
commit17b12a310c1900c87b91e02bf453299b53d570b2
tree40aebb337171a6aff2af976d56bc2216b1033f4c
parent4d040cb6b4b4b734386ba6191dffb085c401a2b2
ASoC: codecs: Fix error handling in power domain init and exit handlers

Update error handling in power domain init and exit handlers, as existing handling
may cause issues in device remove function.
Use appropriate pm core api for power domain get and sync to avoid redundant code.

Fixes: b9e118d66804 ("ASoC: codecs: Add power domains support in digital macro codecs")
Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com>
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com>
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/1647965937-32203-1-git-send-email-quic_srivasam@quicinc.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lpass-macro-common.c