Browse Source

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

This reverts commit 7072e2e8d5aa7f462d479dd1b9c7d53423e1d994.

Change-Id: I285a71795aaf4c5cef3037b2f9f4792567ff452f
Salendarsingh Gaud 4 years ago
parent
commit
b9e32ed773
1 changed files with 1 additions and 1 deletions
  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 (swrm->state != SWR_MSTR_UP) {
+	if (current_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__);