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)

Update to 2.6.22-rc3-git2, more patch changes

  • linux-2.6.22-rc3-git2-armeb/arch/arm/mach-ixp4xx/dsmg600-setup.c

    old new  
    1414#include <linux/kernel.h> 
    1515#include <linux/serial.h> 
    1616#include <linux/serial_8250.h> 
     17#include <linux/i2c-gpio.h> 
    1718 
    1819#include <asm/mach-types.h> 
    1920#include <asm/mach/arch.h> 
     
    3738        .resource               = &dsmg600_flash_resource, 
    3839}; 
    3940 
    40 static struct ixp4xx_i2c_pins dsmg600_i2c_gpio_pins = { 
     41static struct i2c_gpio_platform_data dsmg600_i2c_gpio_data = { 
    4142        .sda_pin                = DSMG600_SDA_PIN, 
    4243        .scl_pin                = DSMG600_SCL_PIN, 
    4344}; 
    4445 
    45 static struct platform_device dsmg600_i2c_controller = { 
    46         .name                   = "IXP4XX-I2C", 
     46static struct platform_device dsmg600_i2c_gpio = { 
     47        .name                   = "i2c-gpio", 
    4748        .id                     = 0, 
    48         .dev.platform_data      = &dsmg600_i2c_gpio_pins, 
     49        .dev     = { 
     50                .platform_data  = &dsmg600_i2c_gpio_data, 
     51        }, 
    4952}; 
    5053 
    5154#ifdef CONFIG_LEDS_CLASS 
     
    116119}; 
    117120 
    118121static struct platform_device *dsmg600_devices[] __initdata = { 
    119         &dsmg600_i2c_controller
     122        &dsmg600_i2c_gpio
    120123        &dsmg600_flash, 
    121124}; 
    122125 
Note: See TracBrowser for help on using the browser.