diff options
Diffstat (limited to 'arch/arm/mach-integrator/clock.c')
-rw-r--r-- | arch/arm/mach-integrator/clock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-integrator/clock.c b/arch/arm/mach-integrator/clock.c index bb70b64a6563..a4f80d33429d 100644 --- a/arch/arm/mach-integrator/clock.c +++ b/arch/arm/mach-integrator/clock.c | |||
@@ -38,8 +38,8 @@ EXPORT_SYMBOL(clk_get_rate); | |||
38 | long clk_round_rate(struct clk *clk, unsigned long rate) | 38 | long clk_round_rate(struct clk *clk, unsigned long rate) |
39 | { | 39 | { |
40 | struct icst_vco vco; | 40 | struct icst_vco vco; |
41 | vco = icst525_khz_to_vco(clk->params, rate / 1000); | 41 | vco = icst525_hz_to_vco(clk->params, rate); |
42 | return icst525_khz(clk->params, vco) * 1000; | 42 | return icst525_hz(clk->params, vco); |
43 | } | 43 | } |
44 | EXPORT_SYMBOL(clk_round_rate); | 44 | EXPORT_SYMBOL(clk_round_rate); |
45 | 45 | ||
@@ -50,8 +50,8 @@ int clk_set_rate(struct clk *clk, unsigned long rate) | |||
50 | if (clk->setvco) { | 50 | if (clk->setvco) { |
51 | struct icst_vco vco; | 51 | struct icst_vco vco; |
52 | 52 | ||
53 | vco = icst525_khz_to_vco(clk->params, rate / 1000); | 53 | vco = icst525_hz_to_vco(clk->params, rate); |
54 | clk->rate = icst525_khz(clk->params, vco) * 1000; | 54 | clk->rate = icst525_hz(clk->params, vco); |
55 | clk->setvco(clk, vco); | 55 | clk->setvco(clk, vco); |
56 | ret = 0; | 56 | ret = 0; |
57 | } | 57 | } |