diff options
Diffstat (limited to 'drivers/pwm/pwm-spear.c')
| -rw-r--r-- | drivers/pwm/pwm-spear.c | 9 | 
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/pwm/pwm-spear.c b/drivers/pwm/pwm-spear.c index 48c31dac2f32..54c7990967dd 100644 --- a/drivers/pwm/pwm-spear.c +++ b/drivers/pwm/pwm-spear.c @@ -177,12 +177,9 @@ static int spear_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,  		return 0;  	} -	if (state->period != pwm->state.period || -	    state->duty_cycle != pwm->state.duty_cycle) { -		err = spear_pwm_config(chip, pwm, state->duty_cycle, state->period); -		if (err) -			return err; -	} +	err = spear_pwm_config(chip, pwm, state->duty_cycle, state->period); +	if (err) +		return err;  	if (!pwm->state.enabled)  		return spear_pwm_enable(chip, pwm);  | 
