root/trunk/patches/2.6.22/22-nas100d-i2c-gpio-driver-support.patch
| Revision 917, 1.2 kB (checked in by gordon, 3 years ago) |
|---|
-
a/arch/arm/mach-ixp4xx/nas100d-setup.c
old new 16 16 #include <linux/serial.h> 17 17 #include <linux/serial_8250.h> 18 18 #include <linux/leds.h> 19 #include <linux/i2c-gpio.h> 19 20 20 21 #include <asm/mach-types.h> 21 22 #include <asm/mach/arch.h> … … 68 69 }; 69 70 #endif 70 71 71 static struct i xp4xx_i2c_pins nas100d_i2c_gpio_pins= {72 static struct i2c_gpio_platform_data nas100d_i2c_gpio_data = { 72 73 .sda_pin = NAS100D_SDA_PIN, 73 74 .scl_pin = NAS100D_SCL_PIN, 74 75 }; 75 76 76 static struct platform_device nas100d_i2c_ controller= {77 .name = " IXP4XX-I2C",77 static struct platform_device nas100d_i2c_gpio = { 78 .name = "i2c-gpio", 78 79 .id = 0, 79 .dev.platform_data = &nas100d_i2c_gpio_pins, 80 .num_resources = 0, 80 .dev = { 81 .platform_data = &nas100d_i2c_gpio_data, 82 }, 81 83 }; 82 84 83 85 static struct resource nas100d_uart_resources[] = { … … 124 126 }; 125 127 126 128 static struct platform_device *nas100d_devices[] __initdata = { 127 &nas100d_i2c_ controller,129 &nas100d_i2c_gpio, 128 130 &nas100d_flash, 129 131 #ifdef CONFIG_LEDS_IXP4XX 130 132 &nas100d_leds,
Note: See TracBrowser for help on using the browser.
