mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
b014a30c59
commit
c8e4df3109
|
@ -248,7 +248,7 @@ static int twl6030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm)
|
||||||
twl->twl6030_toggle3 = val;
|
twl->twl6030_toggle3 = val;
|
||||||
out:
|
out:
|
||||||
mutex_unlock(&twl->mutex);
|
mutex_unlock(&twl->mutex);
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm)
|
static void twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm)
|
||||||
|
|
Loading…
Reference in New Issue