瀏覽代碼

Merge "soc: swr-mstr: check swrm->state in swr_runtime_suepend"

qctecmdr 4 年之前
父節點
當前提交
c896ed2237
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      soc/swr-mstr-ctrl.c

+ 1 - 1
soc/swr-mstr-ctrl.c

@@ -3250,7 +3250,7 @@ static int swrm_runtime_suspend(struct device *dev)
 		swrm->state = SWR_MSTR_DOWN;
 
 exit:
-	if (current_state != SWR_MSTR_UP) {
+	if (swrm->state != SWR_MSTR_UP) {
 		if (swrm_request_hw_vote(swrm, LPASS_AUDIO_CORE, false))
 			dev_dbg(dev, "%s:lpass audio hw enable failed\n",
 			__func__);