summaryrefslogtreecommitdiff
path: root/sound/soc/intel/catpt/sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/intel/catpt/sysfs.c')
-rw-r--r--sound/soc/intel/catpt/sysfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/intel/catpt/sysfs.c b/sound/soc/intel/catpt/sysfs.c
index 9579e233a15d..1bdbcc04dc71 100644
--- a/sound/soc/intel/catpt/sysfs.c
+++ b/sound/soc/intel/catpt/sysfs.c
@@ -15,7 +15,9 @@ static ssize_t fw_version_show(struct device *dev,
struct catpt_fw_version version;
int ret;
- pm_runtime_get_sync(cdev->dev);
+ ret = pm_runtime_resume_and_get(cdev->dev);
+ if (ret < 0 && ret != -EACCES)
+ return ret;
ret = catpt_ipc_get_fw_version(cdev, &version);