diff options
Diffstat (limited to 'arch/arm/mach-ixp4xx/avila-setup.c')
-rw-r--r-- | arch/arm/mach-ixp4xx/avila-setup.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-ixp4xx/avila-setup.c b/arch/arm/mach-ixp4xx/avila-setup.c index d59b8dc7dc7a..e38f45fa58ae 100644 --- a/arch/arm/mach-ixp4xx/avila-setup.c +++ b/arch/arm/mach-ixp4xx/avila-setup.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/tty.h> | 18 | #include <linux/tty.h> |
19 | #include <linux/serial_8250.h> | 19 | #include <linux/serial_8250.h> |
20 | #include <linux/slab.h> | 20 | #include <linux/slab.h> |
21 | #include <linux/i2c-gpio.h> | ||
21 | 22 | ||
22 | #include <asm/types.h> | 23 | #include <asm/types.h> |
23 | #include <asm/setup.h> | 24 | #include <asm/setup.h> |
@@ -47,18 +48,17 @@ static struct platform_device avila_flash = { | |||
47 | .resource = &avila_flash_resource, | 48 | .resource = &avila_flash_resource, |
48 | }; | 49 | }; |
49 | 50 | ||
50 | static struct ixp4xx_i2c_pins avila_i2c_gpio_pins = { | 51 | static struct i2c_gpio_platform_data avila_i2c_gpio_data = { |
51 | .sda_pin = AVILA_SDA_PIN, | 52 | .sda_pin = AVILA_SDA_PIN, |
52 | .scl_pin = AVILA_SCL_PIN, | 53 | .scl_pin = AVILA_SCL_PIN, |
53 | }; | 54 | }; |
54 | 55 | ||
55 | static struct platform_device avila_i2c_controller = { | 56 | static struct platform_device avila_i2c_gpio = { |
56 | .name = "IXP4XX-I2C", | 57 | .name = "i2c-gpio", |
57 | .id = 0, | 58 | .id = 0, |
58 | .dev = { | 59 | .dev = { |
59 | .platform_data = &avila_i2c_gpio_pins, | 60 | .platform_data = &avila_i2c_gpio_data, |
60 | }, | 61 | }, |
61 | .num_resources = 0 | ||
62 | }; | 62 | }; |
63 | 63 | ||
64 | static struct resource avila_uart_resources[] = { | 64 | static struct resource avila_uart_resources[] = { |
@@ -133,7 +133,7 @@ static struct platform_device avila_pata = { | |||
133 | }; | 133 | }; |
134 | 134 | ||
135 | static struct platform_device *avila_devices[] __initdata = { | 135 | static struct platform_device *avila_devices[] __initdata = { |
136 | &avila_i2c_controller, | 136 | &avila_i2c_gpio, |
137 | &avila_flash, | 137 | &avila_flash, |
138 | &avila_uart | 138 | &avila_uart |
139 | }; | 139 | }; |