summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-03-31 17:07:30 +0200
committerThierry Reding <thierry.reding@avionic-design.de>2013-04-02 11:32:14 +0200
commitc8e4df3109646762f21c6e288187ec395fdf67be (patch)
tree31960bafce8e9d0ae457cf8ce6fe6e9b4e9a62df /drivers
parentpwm: pxa: Remove clk_enabled field from struct pxa_pwm_chip (diff)
downloadlinux-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.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)
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)