Message ID | 20220426184106.102636-3-pierre-louis.bossart@linux.intel.com |
---|---|
State | Accepted |
Commit | c106f46e83fd15c34cfa0a68e8218f5cb4844dd3 |
Headers | show |
Series | [1/4] ASoC: SOF: control: use pm_runtime_resume_and_get() | expand |
diff --git a/sound/soc/sof/debug.c b/sound/soc/sof/debug.c index b59619ecfacfc..54d3643b46adb 100644 --- a/sound/soc/sof/debug.c +++ b/sound/soc/sof/debug.c @@ -229,9 +229,8 @@ static int memory_info_update(struct snd_sof_dev *sdev, char *buf, size_t buff_s if (!reply) return -ENOMEM; - ret = pm_runtime_get_sync(sdev->dev); + ret = pm_runtime_resume_and_get(sdev->dev); if (ret < 0 && ret != -EACCES) { - pm_runtime_put_noidle(sdev->dev); dev_err(sdev->dev, "error: enabling device failed: %d\n", ret); goto error; }