UPSTREAM: pwm: sysfs: Get return value from pwm_apply_state()
[firefly-linux-kernel-4.4.55.git] / drivers / pwm / sysfs.c
index 850ff5fa9e3817c4826f1064374054b98f3ea594..2cb39f17a54a716519c1c149f6e879efeb15551f 100644 (file)
@@ -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);