diff options
Diffstat (limited to 'drivers/pwm/pwm-meson.c')
-rw-r--r-- | drivers/pwm/pwm-meson.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c index aaae48ab484e..2ab3d216b35a 100644 --- a/drivers/pwm/pwm-meson.c +++ b/drivers/pwm/pwm-meson.c | |||
@@ -314,11 +314,6 @@ static int meson_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, | |||
314 | if (state->period != channel->state.period || | 314 | if (state->period != channel->state.period || |
315 | state->duty_cycle != channel->state.duty_cycle || | 315 | state->duty_cycle != channel->state.duty_cycle || |
316 | state->polarity != channel->state.polarity) { | 316 | state->polarity != channel->state.polarity) { |
317 | if (channel->state.enabled) { | ||
318 | meson_pwm_disable(meson, pwm->hwpwm); | ||
319 | channel->state.enabled = false; | ||
320 | } | ||
321 | |||
322 | if (state->polarity != channel->state.polarity) { | 317 | if (state->polarity != channel->state.polarity) { |
323 | if (state->polarity == PWM_POLARITY_NORMAL) | 318 | if (state->polarity == PWM_POLARITY_NORMAL) |
324 | meson->inverter_mask |= BIT(pwm->hwpwm); | 319 | meson->inverter_mask |= BIT(pwm->hwpwm); |