Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116810
b: refs/heads/master
c: 71a35d7
h: refs/heads/master
v: v3
  • Loading branch information
roelkluin authored and Russell King committed Oct 17, 2008
1 parent 2c595ab commit 8afa94a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e4d2a5985af957d2c0da61fb978d0c414b92a562
refs/heads/master: 71a35d75661271d20ff0098817070f6545e90cbe
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-pxa/pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8afa94a

Please sign in to comment.