diff options
author | Pierre-Louis Bossart <[email protected]> | 2020-09-17 13:56:28 +0300 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-09-17 15:53:17 +0100 |
commit | 7db6db9d1a4a7864cd2557e983e06f3adf788c6a (patch) | |
tree | efef843fc222a089b23d472c8acf51e2f51ba52d | |
parent | 6eab771472af50e11a484d56ba444e2ec82e9126 (diff) |
ASoC: SOF: debug: update test for pm_runtime_get_sync()
We need to avoid reporting an error for -EACCESS when pm_runtime is
not enabled.
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Guennadi Liakhovetski <[email protected]>
Signed-off-by: Kai Vehmanen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
-rw-r--r-- | sound/soc/sof/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sof/debug.c b/sound/soc/sof/debug.c index 8e15f105d1d5..9419a99bab53 100644 --- a/sound/soc/sof/debug.c +++ b/sound/soc/sof/debug.c @@ -405,7 +405,7 @@ static ssize_t sof_dfsentry_write(struct file *file, const char __user *buffer, } ret = pm_runtime_get_sync(sdev->dev); - if (ret < 0) { + if (ret < 0 && ret != -EACCES) { dev_err_ratelimited(sdev->dev, "error: debugfs write failed to resume %d\n", ret); |