projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b014a30
)
pwm: twl: Return proper error if twl6030_pwm_enable() fails
author
Axel Lin
<axel.lin@ingics.com>
Sun, 31 Mar 2013 15:07:30 +0000
(23:07 +0800)
committer
Thierry Reding
<thierry.reding@avionic-design.de>
Tue, 2 Apr 2013 09:32:14 +0000
(11:32 +0200)
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>
drivers/pwm/pwm-twl.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pwm/pwm-twl.c
b/drivers/pwm/pwm-twl.c
index ee7fa5ddba5df273590f181ddf2a9d7c3755c64d..2782001ba18379e6e434a5a390c58889ea619699 100644
(file)
--- 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)