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)
commit1a8ee4cf84187bce17c76886eb6dd9389c3b99a8
tree40aebb337171a6aff2af976d56bc2216b1033f4c
parent9b014266ef8ad0159b39920a752f191bcd6f356c
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: 9e3d83c52844 ("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