Linux Kernels

pwm: twl: Return proper error if twl6030_pwm_enable() fails

This change “pwm: twl: Return proper error if twl6030_pwm_enable() fails” (commit c8e4df3) in Linux kernel is authored by Axel Lin <axel.lin [at] ingics.com> on Sun Mar 31 23:07:30 2013 +0800.

Description of "pwm: twl: Return proper error if twl6030_pwm_enable() fails"

The change “pwm: twl: Return proper error if twl6030_pwm_enable() fails” introduces changes as follows.

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>

Linux kernel releases containing commit c8e4df3

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "pwm: twl: Return proper error if twl6030_pwm_enable() fails"

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/pwm/pwm-twl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
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)

The commit for this change in Linux stable tree is c8e4df3 (patch).

Last modified: 2020/01/11 06:47