diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2022-04-26 13:41:06 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-04-27 14:15:26 +0100 |
commit | 02885dd831c043d4804dfc1d2942f2f4ec5fdc18 (patch) | |
tree | 9b50908e8d0918ff941b41e1bb2a9b7acf120c4c /sound/soc/sof/sof-client-ipc-msg-injector.c | |
parent | c106f46e83fd15c34cfa0a68e8218f5cb4844dd3 (diff) | |
download | lwn-02885dd831c043d4804dfc1d2942f2f4ec5fdc18.tar.gz lwn-02885dd831c043d4804dfc1d2942f2f4ec5fdc18.zip |
ASoC: SOF: sof-client-ipc-msg-injector: use pm_runtime_resume_and_get()
Use pm_runtime_resume_and_get() to replace the pm_runtime_get_sync() and
pm_runtime_put_noidle() pattern.
No functional changes.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220426184106.102636-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/sof-client-ipc-msg-injector.c')
-rw-r--r-- | sound/soc/sof/sof-client-ipc-msg-injector.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/sof/sof-client-ipc-msg-injector.c b/sound/soc/sof/sof-client-ipc-msg-injector.c index dba6cfd7db09..c711981187aa 100644 --- a/sound/soc/sof/sof-client-ipc-msg-injector.c +++ b/sound/soc/sof/sof-client-ipc-msg-injector.c @@ -83,10 +83,9 @@ static ssize_t sof_msg_inject_dfs_write(struct file *file, const char __user *bu if (size != count) return size > 0 ? -EFAULT : size; - ret = pm_runtime_get_sync(dev); + ret = pm_runtime_resume_and_get(dev); if (ret < 0 && ret != -EACCES) { dev_err_ratelimited(dev, "debugfs write failed to resume %d\n", ret); - pm_runtime_put_noidle(dev); return ret; } |