aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-03-31 11:07:30 -0400
committerThierry Reding <thierry.reding@avionic-design.de>2013-04-02 05:32:14 -0400
commitc8e4df3109646762f21c6e288187ec395fdf67be (patch)
tree31960bafce8e9d0ae457cf8ce6fe6e9b4e9a62df /drivers/pwm
parentb014a30c5991e67aa90b6ff9bd4ec16435bbcefd (diff)
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/pwm')
-rw-r--r--drivers/pwm/pwm-twl.c2
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)
248 twl->twl6030_toggle3 = val; 248 twl->twl6030_toggle3 = val;
249out: 249out:
250 mutex_unlock(&twl->mutex); 250 mutex_unlock(&twl->mutex);
251 return 0; 251 return ret;
252} 252}
253 253
254static void twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) 254static void twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm)