root/trunk/patches/2.6.22/26-ixdp425-i2c-gpio-driver-support.patch
| Revision 857, 1.3 kB (checked in by blaster8, 3 years ago) |
|---|
-
linux-2.6.22-rc3-git2-armeb/arch/arm/mach-ixp4xx/ixdp425-setup.c
old new 15 15 #include <linux/tty.h> 16 16 #include <linux/serial_8250.h> 17 17 #include <linux/slab.h> 18 #include <linux/i2c-gpio.h> 18 19 19 20 #include <asm/types.h> 20 21 #include <asm/setup.h> … … 44 45 .resource = &ixdp425_flash_resource, 45 46 }; 46 47 47 static struct i xp4xx_i2c_pins ixdp425_i2c_gpio_pins= {48 static struct i2c_gpio_platform_data ixdp425_i2c_gpio_data = { 48 49 .sda_pin = IXDP425_SDA_PIN, 49 50 .scl_pin = IXDP425_SCL_PIN, 50 51 }; 51 52 52 static struct platform_device ixdp425_i2c_ controller= {53 .name = " IXP4XX-I2C",53 static struct platform_device ixdp425_i2c_gpio = { 54 .name = "i2c-gpio", 54 55 .id = 0, 55 .dev = {56 .platform_data = &ixdp425_i2c_gpio_pins,56 .dev = { 57 .platform_data = &ixdp425_i2c_gpio_data, 57 58 }, 58 .num_resources = 059 59 }; 60 60 61 61 static struct resource ixdp425_uart_resources[] = { … … 102 102 }; 103 103 104 104 static struct platform_device *ixdp425_devices[] __initdata = { 105 &ixdp425_i2c_ controller,105 &ixdp425_i2c_gpio, 106 106 &ixdp425_flash, 107 107 &ixdp425_uart 108 108 };
Note: See TracBrowser for help on using the browser.
