root/trunk/patches/2.6.22/25-dsmg600-i2c-gpio-driver-support.patch
| Revision 857, 1.2 kB (checked in by blaster8, 3 years ago) |
|---|
-
linux-2.6.22-rc3-git2-armeb/arch/arm/mach-ixp4xx/dsmg600-setup.c
old new 14 14 #include <linux/kernel.h> 15 15 #include <linux/serial.h> 16 16 #include <linux/serial_8250.h> 17 #include <linux/i2c-gpio.h> 17 18 18 19 #include <asm/mach-types.h> 19 20 #include <asm/mach/arch.h> … … 37 38 .resource = &dsmg600_flash_resource, 38 39 }; 39 40 40 static struct i xp4xx_i2c_pins dsmg600_i2c_gpio_pins= {41 static struct i2c_gpio_platform_data dsmg600_i2c_gpio_data = { 41 42 .sda_pin = DSMG600_SDA_PIN, 42 43 .scl_pin = DSMG600_SCL_PIN, 43 44 }; 44 45 45 static struct platform_device dsmg600_i2c_ controller= {46 .name = " IXP4XX-I2C",46 static struct platform_device dsmg600_i2c_gpio = { 47 .name = "i2c-gpio", 47 48 .id = 0, 48 .dev.platform_data = &dsmg600_i2c_gpio_pins, 49 .dev = { 50 .platform_data = &dsmg600_i2c_gpio_data, 51 }, 49 52 }; 50 53 51 54 #ifdef CONFIG_LEDS_CLASS … … 116 119 }; 117 120 118 121 static struct platform_device *dsmg600_devices[] __initdata = { 119 &dsmg600_i2c_ controller,122 &dsmg600_i2c_gpio, 120 123 &dsmg600_flash, 121 124 }; 122 125
Note: See TracBrowser for help on using the browser.
