提交 fe5aa34d 编写于 作者: R Ryo Kodama 提交者: Thierry Reding

pwm: sysfs: Get return value from pwm_apply_state()

This patch adds to check the return value from pwm_apply_state()
used in enable_store(). The error of enable_store() doesn't work
if the return value doesn't received.
Signed-off-by: NRyo Kodama <ryo.kodama.vz@renesas.com>
Signed-off-by: NYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fixes: 39100cee ("pwm: Switch to the atomic API")
Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
上级 ef2bf499
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册