diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-01-16 15:16:10 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-05-02 04:35:33 -0400 |
commit | c5a0adb51002e51a4254cb7f0ab7190d41d8b930 (patch) | |
tree | b6ae6bd13b1aa722e7d96876da28cd5ac3722188 /arch/arm/mach-integrator/clock.c | |
parent | 232eaf7f268f765b52170bec42bfa0c5825aa239 (diff) |
ARM: ICST: kill duplicate icst code
The only difference between ICST307 and ICST525 are the two arrays
for calculating the S parameter; the code is now identical. Merge
the two files and kill the duplicated code.
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.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-integrator/clock.c b/arch/arm/mach-integrator/clock.c index a4f80d33429d..52fc294eac74 100644 --- a/arch/arm/mach-integrator/clock.c +++ b/arch/arm/mach-integrator/clock.c | |||
@@ -14,7 +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/hardware/icst.h> |
18 | #include <asm/clkdev.h> | 18 | #include <asm/clkdev.h> |
19 | #include <mach/clkdev.h> | 19 | #include <mach/clkdev.h> |
20 | 20 | ||
@@ -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_hz_to_vco(clk->params, rate); | 41 | vco = icst_hz_to_vco(clk->params, rate); |
42 | return icst525_hz(clk->params, vco); | 42 | return icst_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_hz_to_vco(clk->params, rate); | 53 | vco = icst_hz_to_vco(clk->params, rate); |
54 | clk->rate = icst525_hz(clk->params, vco); | 54 | clk->rate = icst_hz(clk->params, vco); |
55 | clk->setvco(clk, vco); | 55 | clk->setvco(clk, vco); |
56 | ret = 0; | 56 | ret = 0; |
57 | } | 57 | } |