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>
diff --git a/arch/arm/mach-integrator/clock.c b/arch/arm/mach-integrator/clock.c
index a4f80d3..52fc294 100644
--- a/arch/arm/mach-integrator/clock.c
+++ b/arch/arm/mach-integrator/clock.c
@@ -14,7 +14,7 @@
#include <linux/clk.h>
#include <linux/mutex.h>
-#include <asm/hardware/icst525.h>
+#include <asm/hardware/icst.h>
#include <asm/clkdev.h>
#include <mach/clkdev.h>
@@ -38,8 +38,8 @@
long clk_round_rate(struct clk *clk, unsigned long rate)
{
struct icst_vco vco;
- vco = icst525_hz_to_vco(clk->params, rate);
- return icst525_hz(clk->params, vco);
+ vco = icst_hz_to_vco(clk->params, rate);
+ return icst_hz(clk->params, vco);
}
EXPORT_SYMBOL(clk_round_rate);
@@ -50,8 +50,8 @@
if (clk->setvco) {
struct icst_vco vco;
- vco = icst525_hz_to_vco(clk->params, rate);
- clk->rate = icst525_hz(clk->params, vco);
+ vco = icst_hz_to_vco(clk->params, rate);
+ clk->rate = icst_hz(clk->params, vco);
clk->setvco(clk, vco);
ret = 0;
}