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)

Update to 2.6.22-rc3-git2, more patch changes

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

    old new  
    1515#include <linux/tty.h> 
    1616#include <linux/serial_8250.h> 
    1717#include <linux/slab.h> 
     18#include <linux/i2c-gpio.h> 
    1819 
    1920#include <asm/types.h> 
    2021#include <asm/setup.h> 
     
    4445        .resource       = &ixdp425_flash_resource, 
    4546}; 
    4647 
    47 static struct ixp4xx_i2c_pins ixdp425_i2c_gpio_pins = { 
     48static struct i2c_gpio_platform_data ixdp425_i2c_gpio_data = { 
    4849        .sda_pin        = IXDP425_SDA_PIN, 
    4950        .scl_pin        = IXDP425_SCL_PIN, 
    5051}; 
    5152 
    52 static struct platform_device ixdp425_i2c_controller = { 
    53         .name           = "IXP4XX-I2C", 
     53static struct platform_device ixdp425_i2c_gpio = { 
     54        .name           = "i2c-gpio", 
    5455        .id             = 0, 
    55         .dev           = { 
    56                 .platform_data = &ixdp425_i2c_gpio_pins
     56        .dev     = { 
     57                .platform_data = &ixdp425_i2c_gpio_data
    5758        }, 
    58         .num_resources  = 0 
    5959}; 
    6060 
    6161static struct resource ixdp425_uart_resources[] = { 
     
    102102}; 
    103103 
    104104static struct platform_device *ixdp425_devices[] __initdata = { 
    105         &ixdp425_i2c_controller
     105        &ixdp425_i2c_gpio
    106106        &ixdp425_flash, 
    107107        &ixdp425_uart 
    108108}; 
Note: See TracBrowser for help on using the browser.