summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pnx4008/i2c.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2009-11-21 13:10:54 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-02-12 18:32:40 +0100
commit44c5d739181886cff8e3903dfa38cd704f3d9640 (patch)
tree2fb88f5953018c20816995c6a5140cc766b782f0 /arch/arm/mach-pnx4008/i2c.c
parentARM: PNX4008: Make ioaddr 'void __iomem *' rather than 'u32' (diff)
downloadlinux-44c5d739181886cff8e3903dfa38cd704f3d9640.tar.xz
linux-44c5d739181886cff8e3903dfa38cd704f3d9640.zip
ARM: PNX4008: kzalloc i2c drivers internal data
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.c25
1 files changed, 7 insertions, 18 deletions
diff --git a/arch/arm/mach-pnx4008/i2c.c b/arch/arm/mach-pnx4008/i2c.c
index 23ec335a4bc0..33146e832dd7 100644
--- a/arch/arm/mach-pnx4008/i2c.c
+++ b/arch/arm/mach-pnx4008/i2c.c
@@ -18,45 +18,34 @@
#include <mach/irqs.h>
#include <mach/i2c.h>
-static struct i2c_pnx_algo_data pnx_algo_data0 = {
- .base = PNX4008_I2C1_BASE,
- .irq = I2C_1_INT,
-};
-
-static struct i2c_pnx_algo_data pnx_algo_data1 = {
- .base = PNX4008_I2C2_BASE,
- .irq = I2C_2_INT,
-};
-
-static struct i2c_pnx_algo_data pnx_algo_data2 = {
- .base = (PNX4008_USB_CONFIG_BASE + 0x300),
- .irq = USB_I2C_INT,
-};
-
static struct i2c_adapter pnx_adapter0 = {
.name = I2C_CHIP_NAME "0",
- .algo_data = &pnx_algo_data0,
};
+
static struct i2c_adapter pnx_adapter1 = {
.name = I2C_CHIP_NAME "1",
- .algo_data = &pnx_algo_data1,
};
static struct i2c_adapter pnx_adapter2 = {
.name = "USB-I2C",
- .algo_data = &pnx_algo_data2,
};
static struct i2c_pnx_data i2c0_data = {
.adapter = &pnx_adapter0,
+ .base = PNX4008_I2C1_BASE,
+ .irq = I2C_1_INT,
};
static struct i2c_pnx_data i2c1_data = {
.adapter = &pnx_adapter1,
+ .base = PNX4008_I2C2_BASE,
+ .irq = I2C_2_INT,
};
static struct i2c_pnx_data i2c2_data = {
.adapter = &pnx_adapter2,
+ .base = (PNX4008_USB_CONFIG_BASE + 0x300),
+ .irq = USB_I2C_INT,
};
static struct platform_device i2c0_device = {