diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-11-20 07:46:07 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-02-12 12:32:39 -0500 |
commit | 6fff3da998ac3cc9ed8a84bf4f19911bd63c8c32 (patch) | |
tree | 97c80144615bbc9ff8c4baee20feb1cf2af20fef /arch/arm/mach-pnx4008/i2c.c | |
parent | ebdbbf2003ae2342147c87c2a6c6ed8984b9cede (diff) |
ARM: PNX4008: get i2c clock rate from clk API
Acked-by: Vitaly Wool <vitalywool@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pnx4008/i2c.c')
-rw-r--r-- | arch/arm/mach-pnx4008/i2c.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/arm/mach-pnx4008/i2c.c b/arch/arm/mach-pnx4008/i2c.c index 14b4906bec2f..23ec335a4bc0 100644 --- a/arch/arm/mach-pnx4008/i2c.c +++ b/arch/arm/mach-pnx4008/i2c.c | |||
@@ -18,12 +18,6 @@ | |||
18 | #include <mach/irqs.h> | 18 | #include <mach/irqs.h> |
19 | #include <mach/i2c.h> | 19 | #include <mach/i2c.h> |
20 | 20 | ||
21 | static u32 calculate_input_freq(struct platform_device *pdev) | ||
22 | { | ||
23 | return HCLK_MHZ; | ||
24 | } | ||
25 | |||
26 | |||
27 | static struct i2c_pnx_algo_data pnx_algo_data0 = { | 21 | static struct i2c_pnx_algo_data pnx_algo_data0 = { |
28 | .base = PNX4008_I2C1_BASE, | 22 | .base = PNX4008_I2C1_BASE, |
29 | .irq = I2C_1_INT, | 23 | .irq = I2C_1_INT, |
@@ -54,17 +48,14 @@ static struct i2c_adapter pnx_adapter2 = { | |||
54 | }; | 48 | }; |
55 | 49 | ||
56 | static struct i2c_pnx_data i2c0_data = { | 50 | static struct i2c_pnx_data i2c0_data = { |
57 | .calculate_input_freq = calculate_input_freq, | ||
58 | .adapter = &pnx_adapter0, | 51 | .adapter = &pnx_adapter0, |
59 | }; | 52 | }; |
60 | 53 | ||
61 | static struct i2c_pnx_data i2c1_data = { | 54 | static struct i2c_pnx_data i2c1_data = { |
62 | .calculate_input_freq = calculate_input_freq, | ||
63 | .adapter = &pnx_adapter1, | 55 | .adapter = &pnx_adapter1, |
64 | }; | 56 | }; |
65 | 57 | ||
66 | static struct i2c_pnx_data i2c2_data = { | 58 | static struct i2c_pnx_data i2c2_data = { |
67 | .calculate_input_freq = calculate_input_freq, | ||
68 | .adapter = &pnx_adapter2, | 59 | .adapter = &pnx_adapter2, |
69 | }; | 60 | }; |
70 | 61 | ||