diff options
-rw-r--r-- | arch/arm/mach-pxa/pwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/pwm.c b/arch/arm/mach-pxa/pwm.c index 316cd986da5c..74e2ead8cee8 100644 --- a/arch/arm/mach-pxa/pwm.c +++ b/arch/arm/mach-pxa/pwm.c | |||
@@ -60,7 +60,7 @@ int pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns) | |||
60 | do_div(c, 1000000000); | 60 | do_div(c, 1000000000); |
61 | period_cycles = c; | 61 | period_cycles = c; |
62 | 62 | ||
63 | if (period_cycles < 0) | 63 | if (period_cycles < 1) |
64 | period_cycles = 1; | 64 | period_cycles = 1; |
65 | prescale = (period_cycles - 1) / 1024; | 65 | prescale = (period_cycles - 1) / 1024; |
66 | pv = period_cycles / (prescale + 1) - 1; | 66 | pv = period_cycles / (prescale + 1) - 1; |