author: Thierry Reding <thierry.reding@gmail.com> 2020-12-16 18:33:55 +0100
committer: Thierry Reding <thierry.reding@gmail.com> 2020-12-17 14:23:49 +0100
commit: 6eefb79d6f5bc4086bd02c76f1072dd4a8d9d9f6
parent: edf7f80e780e50bb5711d4c112b721517d0ff73e
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 5 deletions
diff --git a/drivers/pwm/pwm-sun4i.c b/drivers/pwm/pwm-sun4i.c
index cc1eb0818648..ce5c4fc8da6f 100644
--- a/drivers/pwm/pwm-sun4i.c
+++ b/drivers/pwm/pwm-sun4i.c
@@ -294,12 +294,8 @@ static int sun4i_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
ctrl |= BIT_CH(PWM_CLK_GATING, pwm->hwpwm);
- if (state->enabled) {
+ if (state->enabled)
ctrl |= BIT_CH(PWM_EN, pwm->hwpwm);
- } else {
- ctrl &= ~BIT_CH(PWM_EN, pwm->hwpwm);
- ctrl &= ~BIT_CH(PWM_CLK_GATING, pwm->hwpwm);
- }
sun4i_pwm_writel(sun4i_pwm, ctrl, PWM_CTRL_REG);