All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pwm: twl: Return proper error if twl6030_pwm_enable() fails
@ 2013-03-31 15:07 Axel Lin
  2013-04-02  7:14 ` Peter Ujfalusi
  2013-04-02  9:40 ` Thierry Reding
  0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2013-03-31 15:07 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Peter Ujfalusi, linux-kernel

Return proper error instead of 0 if twl6030_pwm_enable() fails.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 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 ee7fa5d..2782001 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)
-- 
1.7.10.4




^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-02  9:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-31 15:07 [PATCH] pwm: twl: Return proper error if twl6030_pwm_enable() fails Axel Lin
2013-04-02  7:14 ` Peter Ujfalusi
2013-04-02  9:40 ` Thierry Reding

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.