root/trunk/patches/2.6.22/21-nslu2-i2c-gpio-driver-support.patch
| Revision 917, 1.3 kB (checked in by gordon, 3 years ago) |
|---|
-
a/arch/arm/mach-ixp4xx/nslu2-setup.c
old new 18 18 #include <linux/serial.h> 19 19 #include <linux/serial_8250.h> 20 20 #include <linux/leds.h> 21 #include <linux/i2c-gpio.h> 21 22 22 23 #include <asm/mach-types.h> 23 24 #include <asm/mach/arch.h> … … 41 42 .resource = &nslu2_flash_resource, 42 43 }; 43 44 44 static struct i xp4xx_i2c_pins nslu2_i2c_gpio_pins= {45 static struct i2c_gpio_platform_data nslu2_i2c_gpio_data = { 45 46 .sda_pin = NSLU2_SDA_PIN, 46 47 .scl_pin = NSLU2_SCL_PIN, 47 48 }; … … 82 83 }; 83 84 #endif 84 85 85 static struct platform_device nslu2_i2c_ controller= {86 .name = " IXP4XX-I2C",86 static struct platform_device nslu2_i2c_gpio = { 87 .name = "i2c-gpio", 87 88 .id = 0, 88 .dev.platform_data = &nslu2_i2c_gpio_pins, 89 .num_resources = 0, 89 .dev = { 90 .platform_data = &nslu2_i2c_gpio_data, 91 }, 90 92 }; 91 93 92 94 static struct platform_device nslu2_beeper = { … … 139 141 }; 140 142 141 143 static struct platform_device *nslu2_devices[] __initdata = { 142 &nslu2_i2c_ controller,144 &nslu2_i2c_gpio, 143 145 &nslu2_flash, 144 146 &nslu2_beeper, 145 147 #ifdef CONFIG_LEDS_IXP4XX
Note: See TracBrowser for help on using the browser.
