root/trunk/patches/2.6.22/23-avila-i2c-gpio-driver-support.patch
| Revision 857, 1.3 KB (checked in by blaster8, 3 years ago) |
|---|
-
arch/arm/mach-ixp4xx/avila-setup.c
old new 18 18 #include <linux/tty.h> 19 19 #include <linux/serial_8250.h> 20 20 #include <linux/slab.h> 21 #include <linux/i2c-gpio.h> 21 22 22 23 #include <asm/types.h> 23 24 #include <asm/setup.h> … … 47 48 .resource = &avila_flash_resource, 48 49 }; 49 50 50 static struct i xp4xx_i2c_pins avila_i2c_gpio_pins= {51 static struct i2c_gpio_platform_data avila_i2c_gpio_data = { 51 52 .sda_pin = AVILA_SDA_PIN, 52 53 .scl_pin = AVILA_SCL_PIN, 53 54 }; 54 55 55 static struct platform_device avila_i2c_ controller= {56 .name = " IXP4XX-I2C",56 static struct platform_device avila_i2c_gpio = { 57 .name = "i2c-gpio", 57 58 .id = 0, 58 .dev = {59 .platform_data = &avila_i2c_gpio_pins,59 .dev = { 60 .platform_data = &avila_i2c_gpio_data, 60 61 }, 61 .num_resources = 062 62 }; 63 63 64 64 static struct resource avila_uart_resources[] = { … … 133 133 }; 134 134 135 135 static struct platform_device *avila_devices[] __initdata = { 136 &avila_i2c_ controller,136 &avila_i2c_gpio, 137 137 &avila_flash, 138 138 &avila_uart 139 139 };
Note: See TracBrowser
for help on using the browser.
