diff options
Diffstat (limited to 'arch/arm/mach-realview/clock.c')
-rw-r--r-- | arch/arm/mach-realview/clock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-realview/clock.c b/arch/arm/mach-realview/clock.c index 83646579bc4..2ba0667d18f 100644 --- a/arch/arm/mach-realview/clock.c +++ b/arch/arm/mach-realview/clock.c | |||
@@ -42,8 +42,8 @@ EXPORT_SYMBOL(clk_get_rate); | |||
42 | long clk_round_rate(struct clk *clk, unsigned long rate) | 42 | long clk_round_rate(struct clk *clk, unsigned long rate) |
43 | { | 43 | { |
44 | struct icst_vco vco; | 44 | struct icst_vco vco; |
45 | vco = icst307_khz_to_vco(clk->params, rate / 1000); | 45 | vco = icst307_hz_to_vco(clk->params, rate); |
46 | return icst307_khz(clk->params, vco) * 1000; | 46 | return icst307_hz(clk->params, vco); |
47 | } | 47 | } |
48 | EXPORT_SYMBOL(clk_round_rate); | 48 | EXPORT_SYMBOL(clk_round_rate); |
49 | 49 | ||
@@ -54,8 +54,8 @@ int clk_set_rate(struct clk *clk, unsigned long rate) | |||
54 | if (clk->setvco) { | 54 | if (clk->setvco) { |
55 | struct icst_vco vco; | 55 | struct icst_vco vco; |
56 | 56 | ||
57 | vco = icst307_khz_to_vco(clk->params, rate / 1000); | 57 | vco = icst307_hz_to_vco(clk->params, rate); |
58 | clk->rate = icst307_khz(clk->params, vco) * 1000; | 58 | clk->rate = icst307_hz(clk->params, vco); |
59 | clk->setvco(clk, vco); | 59 | clk->setvco(clk, vco); |
60 | ret = 0; | 60 | ret = 0; |
61 | } | 61 | } |