aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-versatile/clock.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-01-16 15:16:10 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-05-02 04:35:33 -0400
commitc5a0adb51002e51a4254cb7f0ab7190d41d8b930 (patch)
treeb6ae6bd13b1aa722e7d96876da28cd5ac3722188 /arch/arm/mach-versatile/clock.c
parent232eaf7f268f765b52170bec42bfa0c5825aa239 (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-versatile/clock.c')
-rw-r--r--arch/arm/mach-versatile/clock.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-versatile/clock.c b/arch/arm/mach-versatile/clock.c
index 82753be453d0..adc67d771c78 100644
--- a/arch/arm/mach-versatile/clock.c
+++ b/arch/arm/mach-versatile/clock.c
@@ -19,7 +19,7 @@
19#include <linux/mutex.h> 19#include <linux/mutex.h>
20 20
21#include <asm/clkdev.h> 21#include <asm/clkdev.h>
22#include <asm/hardware/icst307.h> 22#include <asm/hardware/icst.h>
23 23
24#include "clock.h" 24#include "clock.h"
25 25
@@ -43,8 +43,8 @@ EXPORT_SYMBOL(clk_get_rate);
43long clk_round_rate(struct clk *clk, unsigned long rate) 43long clk_round_rate(struct clk *clk, unsigned long rate)
44{ 44{
45 struct icst_vco vco; 45 struct icst_vco vco;
46 vco = icst307_hz_to_vco(clk->params, rate); 46 vco = icst_hz_to_vco(clk->params, rate);
47 return icst307_hz(clk->params, vco); 47 return icst_hz(clk->params, vco);
48} 48}
49EXPORT_SYMBOL(clk_round_rate); 49EXPORT_SYMBOL(clk_round_rate);
50 50
@@ -55,8 +55,8 @@ int clk_set_rate(struct clk *clk, unsigned long rate)
55 if (clk->setvco) { 55 if (clk->setvco) {
56 struct icst_vco vco; 56 struct icst_vco vco;
57 57
58 vco = icst307_hz_to_vco(clk->params, rate); 58 vco = icst_hz_to_vco(clk->params, rate);
59 clk->rate = icst307_hz(clk->params, vco); 59 clk->rate = icst_hz(clk->params, vco);
60 clk->setvco(clk, vco); 60 clk->setvco(clk, vco);
61 ret = 0; 61 ret = 0;
62 } 62 }