diff options
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/pwm-atmel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c index 2d69e9c431dd..0adc952cc4ef 100644 --- a/drivers/pwm/pwm-atmel.c +++ b/drivers/pwm/pwm-atmel.c | |||
@@ -133,7 +133,7 @@ static int atmel_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, | |||
133 | prd = div; | 133 | prd = div; |
134 | div *= duty_ns; | 134 | div *= duty_ns; |
135 | do_div(div, period_ns); | 135 | do_div(div, period_ns); |
136 | dty = div; | 136 | dty = prd - div; |
137 | 137 | ||
138 | ret = clk_enable(atmel_pwm->clk); | 138 | ret = clk_enable(atmel_pwm->clk); |
139 | if (ret) { | 139 | if (ret) { |