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

This commit is contained in:
qctecmdr
2020-09-10 01:00:03 -07:00
committad av Gerrit - the friendly Code Review server
förälder 9c822fca10 91437a36ea
incheckning c896ed2237

Visa fil

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