Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350720
b: refs/heads/master
c: bab5330
h: refs/heads/master
v: v3
  • Loading branch information
Haojian Zhuang authored and Mike Turquette committed Jan 12, 2013
1 parent 15e90ca commit 1f88100
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 4895084c87ab0973308021d755596798160b682a
refs/heads/master: bab53301c3846ae9a5e1142dca2976f434f70481
5 changes: 4 additions & 1 deletion trunk/drivers/clk/clk-fixed-factor.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ static unsigned long clk_factor_recalc_rate(struct clk_hw *hw,
unsigned long parent_rate)
{
struct clk_fixed_factor *fix = to_clk_fixed_factor(hw);
unsigned long long int rate;

return parent_rate * fix->mult / fix->div;
rate = (unsigned long long int)parent_rate * fix->mult;
do_div(rate, fix->div);
return (unsigned long)rate;
}

static long clk_factor_round_rate(struct clk_hw *hw, unsigned long rate,
Expand Down

0 comments on commit 1f88100

Please sign in to comment.