diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-03-31 17:07:30 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2013-04-02 11:32:14 +0200 |
commit | c8e4df3109646762f21c6e288187ec395fdf67be (patch) | |
tree | 31960bafce8e9d0ae457cf8ce6fe6e9b4e9a62df /drivers | |
parent | pwm: pxa: Remove clk_enabled field from struct pxa_pwm_chip (diff) | |
download | linux-c8e4df3109646762f21c6e288187ec395fdf67be.tar.xz linux-c8e4df3109646762f21c6e288187ec395fdf67be.zip |
pwm: twl: Return proper error if twl6030_pwm_enable() fails
Return proper error instead of 0 if twl6030_pwm_enable() fails.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pwm/pwm-twl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-twl.c b/drivers/pwm/pwm-twl.c index ee7fa5ddba5d..2782001ba183 100644 --- a/drivers/pwm/pwm-twl.c +++ b/drivers/pwm/pwm-twl.c @@ -248,7 +248,7 @@ static int twl6030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) twl->twl6030_toggle3 = val; out: mutex_unlock(&twl->mutex); - return 0; + return ret; } static void twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) |