From 8afa94a3b7618aac22fa456abd289606545b6b31 Mon Sep 17 00:00:00 2001 From: roelkluin Date: Tue, 14 Oct 2008 21:28:51 +0100 Subject: [PATCH] --- yaml --- r: 116810 b: refs/heads/master c: 71a35d75661271d20ff0098817070f6545e90cbe h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-pxa/pwm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 96df4567fc79..7701a1bdf66c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e4d2a5985af957d2c0da61fb978d0c414b92a562 +refs/heads/master: 71a35d75661271d20ff0098817070f6545e90cbe diff --git a/trunk/arch/arm/mach-pxa/pwm.c b/trunk/arch/arm/mach-pxa/pwm.c index 316cd986da5c..74e2ead8cee8 100644 --- a/trunk/arch/arm/mach-pxa/pwm.c +++ b/trunk/arch/arm/mach-pxa/pwm.c @@ -60,7 +60,7 @@ int pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns) do_div(c, 1000000000); period_cycles = c; - if (period_cycles < 0) + if (period_cycles < 1) period_cycles = 1; prescale = (period_cycles - 1) / 1024; pv = period_cycles / (prescale + 1) - 1;