Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182992
b: refs/heads/master
c: cd71f8f
h: refs/heads/master
v: v3
  • Loading branch information
Linus Walleij authored and Russell King committed Feb 24, 2010
1 parent c823d7e commit 3c77d0e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 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: fcfadcaa57be0711ca80e3898243388f4d19928f
refs/heads/master: cd71f8f48eda141404db78f7b01902ba3f9ab477
24 changes: 12 additions & 12 deletions trunk/arch/arm/mach-u300/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,34 +610,34 @@ EXPORT_SYMBOL(clk_get_rate);

static unsigned long clk_round_rate_mclk(struct clk *clk, unsigned long rate)
{
if (rate >= 18900000)
if (rate <= 18900000)
return 18900000;
if (rate >= 20800000)
if (rate <= 20800000)
return 20800000;
if (rate >= 23100000)
if (rate <= 23100000)
return 23100000;
if (rate >= 26000000)
if (rate <= 26000000)
return 26000000;
if (rate >= 29700000)
if (rate <= 29700000)
return 29700000;
if (rate >= 34700000)
if (rate <= 34700000)
return 34700000;
if (rate >= 41600000)
if (rate <= 41600000)
return 41600000;
if (rate >= 52000000)
if (rate <= 52000000)
return 52000000;
return -EINVAL;
}

static unsigned long clk_round_rate_cpuclk(struct clk *clk, unsigned long rate)
{
if (rate >= 13000000)
if (rate <= 13000000)
return 13000000;
if (rate >= 52000000)
if (rate <= 52000000)
return 52000000;
if (rate >= 104000000)
if (rate <= 104000000)
return 104000000;
if (rate >= 208000000)
if (rate <= 208000000)
return 208000000;
return -EINVAL;
}
Expand Down

0 comments on commit 3c77d0e

Please sign in to comment.