aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-realview/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-realview/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-realview/clock.c')
-rw-r--r--arch/arm/mach-realview/clock.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-realview/clock.c b/arch/arm/mach-realview/clock.c
index 2ba0667d18f5..18c545921e41 100644
--- a/arch/arm/mach-realview/clock.c
+++ b/arch/arm/mach-realview/clock.c
@@ -18,7 +18,7 @@
18#include <linux/clk.h> 18#include <linux/clk.h>
19#include <linux/mutex.h> 19#include <linux/mutex.h>
20 20
21#include <asm/hardware/icst307.h> 21#include <asm/hardware/icst.h>
22 22
23#include "clock.h" 23#include "clock.h"
24 24
@@ -42,8 +42,8 @@ EXPORT_SYMBOL(clk_get_rate);
42long clk_round_rate(struct clk *clk, unsigned long rate) 42long clk_round_rate(struct clk *clk, unsigned long rate)
43{ 43{
44 struct icst_vco vco; 44 struct icst_vco vco;
45 vco = icst307_hz_to_vco(clk->params, rate); 45 vco = icst_hz_to_vco(clk->params, rate);
46 return icst307_hz(clk->params, vco); 46 return icst_hz(clk->params, vco);
47} 47}
48EXPORT_SYMBOL(clk_round_rate); 48EXPORT_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_hz_to_vco(clk->params, rate); 57 vco = icst_hz_to_vco(clk->params, rate);
58 clk->rate = icst307_hz(clk->params, vco); 58 clk->rate = icst_hz(clk->params, vco);
59 clk->setvco(clk, vco); 59 clk->setvco(clk, vco);
60 ret = 0; 60 ret = 0;
61 } 61 }