diff options
Diffstat (limited to 'drivers/pwm/pwm-tiehrpwm.c')
-rw-r--r-- | drivers/pwm/pwm-tiehrpwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-tiehrpwm.c b/drivers/pwm/pwm-tiehrpwm.c index caf00feadc66..d3c1dff0a0dc 100644 --- a/drivers/pwm/pwm-tiehrpwm.c +++ b/drivers/pwm/pwm-tiehrpwm.c | |||
@@ -221,7 +221,7 @@ static int ehrpwm_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, | |||
221 | unsigned short ps_divval, tb_divval; | 221 | unsigned short ps_divval, tb_divval; |
222 | int i, cmp_reg; | 222 | int i, cmp_reg; |
223 | 223 | ||
224 | if (period_ns < 0 || duty_ns < 0 || period_ns > NSEC_PER_SEC) | 224 | if (period_ns > NSEC_PER_SEC) |
225 | return -ERANGE; | 225 | return -ERANGE; |
226 | 226 | ||
227 | c = pc->clk_rate; | 227 | c = pc->clk_rate; |