projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
UPSTREAM: pwm: sysfs: Get return value from pwm_apply_state()
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
pwm
/
sysfs.c
diff --git
a/drivers/pwm/sysfs.c
b/drivers/pwm/sysfs.c
index 850ff5fa9e3817c4826f1064374054b98f3ea594..2cb39f17a54a716519c1c149f6e879efeb15551f 100644
(file)
--- a/
drivers/pwm/sysfs.c
+++ b/
drivers/pwm/sysfs.c
@@
-152,7
+152,7
@@
static ssize_t enable_store(struct device *child,
goto unlock;
}
- pwm_apply_state(pwm, &state);
+
ret =
pwm_apply_state(pwm, &state);
unlock:
mutex_unlock(&export->lock);