UPSTREAM: pwm: sysfs: Get return value from pwm_apply_state()
authorRyo Kodama <ryo.kodama.vz@renesas.com>
Wed, 8 Jun 2016 01:58:23 +0000 (10:58 +0900)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 6 Mar 2017 10:28:40 +0000 (18:28 +0800)
commit9d523c146299c8c32204b1e94c664a3e18b8ad78
treeee3ccd6b8c0d42c329bb27d4834a676d8ed74c1c
parent5e88e30e7eaeda711f0cc819fbfdffbb130e42db
UPSTREAM: 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: Ryo Kodama <ryo.kodama.vz@renesas.com>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fixes: 39100ceea79f ("pwm: Switch to the atomic API")
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
(cherry picked from commit fe5aa34d6eb9c4d34071845f70f3714b41c8a77d)

Change-Id: I550da28345bcee7a6aa8e1f9b5c43adae923ff2d
Signed-off-by: David Wu <david.wu@rock-chips.com>
drivers/pwm/sysfs.c