Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225696
b: refs/heads/master
c: 3a790bb
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Walker authored and David Brown committed Dec 15, 2010
1 parent 8e35344 commit d44a4f4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 304a09c3251c7c74660fc2ff9c590edf3d4bdd7e
refs/heads/master: 3a790bbe790e79a9744adf105ed135624a590f5b
15 changes: 15 additions & 0 deletions trunk/arch/arm/mach-msm/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,21 @@ EXPORT_SYMBOL(clk_get_rate);

int clk_set_rate(struct clk *clk, unsigned long rate)
{
int ret;
if (clk->flags & CLKFLAG_MAX) {
ret = clk->ops->set_max_rate(clk->id, rate);
if (ret)
return ret;
}
if (clk->flags & CLKFLAG_MIN) {
ret = clk->ops->set_min_rate(clk->id, rate);
if (ret)
return ret;
}

if (clk->flags & CLKFLAG_MAX || clk->flags & CLKFLAG_MIN)
return ret;

return clk->ops->set_rate(clk->id, rate);
}
EXPORT_SYMBOL(clk_set_rate);
Expand Down

0 comments on commit d44a4f4

Please sign in to comment.