From: Pierre-Louis Bossart Date: Tue, 17 May 2022 17:37:15 +0000 (-0500) Subject: ASoC: SOF: sof-client-ipc-flood-test: use pm_runtime_resume_and_get() X-Git-Tag: microblaze-v5.20~57^2^2~18 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=b1378b259c0c0300cf62dd7117bf550edce0f9cc;hp=0f653c95c4f4b6b623ce8bd995002daf8032bfc3;p=linux-2.6-microblaze.git ASoC: SOF: sof-client-ipc-flood-test: 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 Reviewed-by: Péter Ujfalusi Reviewed-by: Bard Liao Link: https://lore.kernel.org/r/20220517173715.468894-1-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/sof/sof-client-ipc-flood-test.c b/sound/soc/sof/sof-client-ipc-flood-test.c index db3a052c5dd2..4bdecd80248a 100644 --- a/sound/soc/sof/sof-client-ipc-flood-test.c +++ b/sound/soc/sof/sof-client-ipc-flood-test.c @@ -217,10 +217,9 @@ static ssize_t sof_ipc_flood_dfs_write(struct file *file, const char __user *buf ipc_count = MAX_IPC_FLOOD_COUNT; } - 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); goto out; }