From: ryang <[email protected]>

Signed-off-by: ryang <[email protected]>
---
 drivers/pwm/pwm-atmel.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c
index 6e700a5..2dca0bf 100644
--- a/drivers/pwm/pwm-atmel.c
+++ b/drivers/pwm/pwm-atmel.c
@@ -128,7 +128,8 @@ static int atmel_pwm_config(struct pwm_chip *chip, struct 
pwm_device *pwm,
                        return -EINVAL;
                }
        }
-
+       /* Need to reduce the prescaler by 1 */
+       pres--;
        /* Calculate the duty cycles */
        prd = div;
        div *= duty_ns;
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-pwm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to