3 Oct
2022
3 Oct
'22
12:05 p.m.
On Thu, Sep 29, 2022 at 11:06:50PM +0800, Zhang Qilong wrote:
The pm_runtime_enable will increase power disable depth. Thus a pairing decrement is needed on the error handling path to keep it balanced according to context. We fix it by calling pm_runtime_disable when error returns.
Fixes:40843aea5a9bd ("ASoC: wm8997: Initial CODEC driver") Signed-off-by: Zhang Qilong zhangqilong3@huawei.com
v2:
- call pm_runtime_disable when error returns
Acked-by: Charles Keepax ckeepax@opensource.cirrus.com
Thanks, Charles