summaryrefslogtreecommitdiff
path: root/packages/linux/nslu2-kernel/2.6.15/01-i2c-ixp4xx.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/linux/nslu2-kernel/2.6.15/01-i2c-ixp4xx.patch')
-rw-r--r--packages/linux/nslu2-kernel/2.6.15/01-i2c-ixp4xx.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/linux/nslu2-kernel/2.6.15/01-i2c-ixp4xx.patch b/packages/linux/nslu2-kernel/2.6.15/01-i2c-ixp4xx.patch
new file mode 100644
index 0000000000..16426bdee6
--- /dev/null
+++ b/packages/linux/nslu2-kernel/2.6.15/01-i2c-ixp4xx.patch
@@ -0,0 +1,29 @@
+--- linux-2.6.15/drivers/i2c/busses/i2c-ixp4xx.c 1970-01-01 00:00:00.000000000 +0000
++++ linux-2.6.15/drivers/i2c/busses/i2c-ixp4xx.c 1970-01-01 00:00:00.000000000 +0000
+@@ -35,7 +35,7 @@
+
+ #include <asm/hardware.h> /* Pick up IXP4xx-specific bits */
+
+-static struct device_driver ixp4xx_i2c_driver;
++static struct platform_driver ixp4xx_i2c_driver;
+
+ static inline int ixp4xx_scl_pin(void *data)
+ {
+@@ -128,7 +128,7 @@ static int ixp4xx_i2c_probe(struct platf
+ drv_data->algo_data.timeout = 100;
+
+ drv_data->adapter.id = I2C_HW_B_IXP4XX;
+- strlcpy(drv_data->adapter.name, ixp4xx_i2c_driver.name,
++ strlcpy(drv_data->adapter.name, ixp4xx_i2c_driver.driver.name,
+ I2C_NAME_SIZE);
+ drv_data->adapter.algo_data = &drv_data->algo_data;
+
+@@ -140,7 +140,7 @@ static int ixp4xx_i2c_probe(struct platf
+ gpio_line_set(gpio->sda_pin, 0);
+
+ if ((err = i2c_bit_add_bus(&drv_data->adapter) != 0)) {
+- printk(KERN_ERR "ERROR: Could not install %s\n", dev->bus_id);
++ printk(KERN_ERR "ERROR: Could not install %s\n", ixp4xx_i2c_driver.driver.name);
+
+ kfree(drv_data);
+ return err;