aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-integrator/clock.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-01-16 11:27:28 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-05-02 04:35:29 -0400
commit39c0cb02db5b8fdfac76d506b7a008b70bc960e9 (patch)
tree30e79dcadb5f6c26bba5fcf585cc309e240ff948 /arch/arm/mach-integrator/clock.c
parentb830b9b5b3d04bc22f0b9ded85b713f7d3c11b7f (diff)
ARM: ICST: merge common ICST VCO structures
The structures for the ICST307 and ICST525 VCO devices are identical, so merge them together. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-integrator/clock.c')
-rw-r--r--arch/arm/mach-integrator/clock.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-integrator/clock.c b/arch/arm/mach-integrator/clock.c
index 989ecf5f5c46..bb70b64a6563 100644
--- a/arch/arm/mach-integrator/clock.c
+++ b/arch/arm/mach-integrator/clock.c
@@ -14,6 +14,7 @@
14#include <linux/clk.h> 14#include <linux/clk.h>
15#include <linux/mutex.h> 15#include <linux/mutex.h>
16 16
17#include <asm/hardware/icst525.h>
17#include <asm/clkdev.h> 18#include <asm/clkdev.h>
18#include <mach/clkdev.h> 19#include <mach/clkdev.h>
19 20
@@ -36,7 +37,7 @@ EXPORT_SYMBOL(clk_get_rate);
36 37
37long clk_round_rate(struct clk *clk, unsigned long rate) 38long clk_round_rate(struct clk *clk, unsigned long rate)
38{ 39{
39 struct icst525_vco vco; 40 struct icst_vco vco;
40 vco = icst525_khz_to_vco(clk->params, rate / 1000); 41 vco = icst525_khz_to_vco(clk->params, rate / 1000);
41 return icst525_khz(clk->params, vco) * 1000; 42 return icst525_khz(clk->params, vco) * 1000;
42} 43}
@@ -47,7 +48,7 @@ int clk_set_rate(struct clk *clk, unsigned long rate)
47 int ret = -EIO; 48 int ret = -EIO;
48 49
49 if (clk->setvco) { 50 if (clk->setvco) {
50 struct icst525_vco vco; 51 struct icst_vco vco;
51 52
52 vco = icst525_khz_to_vco(clk->params, rate / 1000); 53 vco = icst525_khz_to_vco(clk->params, rate / 1000);
53 clk->rate = icst525_khz(clk->params, vco) * 1000; 54 clk->rate = icst525_khz(clk->params, vco) * 1000;