aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-ixp4xx.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2005-10-07 17:04:48 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 17:02:08 -0400
commit8a1b028bca95b5af36e94a660c4d284fe3313f74 (patch)
tree8fc0193e66117776b4112cb9484e61a51bf48a21 /drivers/i2c/busses/i2c-ixp4xx.c
parentca68f1193e8fc86470d4222d563d13b5584dc4f8 (diff)
[PATCH] i2c: Add missing i2c-ixp2000/4xx adapter name
The ixp4xx and ixp2000 i2c bus drivers omit to fill the required i2c_adapter name field. Copy the device driver name field there. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Deepak Saxena <dsaxena@plexity.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-ixp4xx.c')
-rw-r--r--drivers/i2c/busses/i2c-ixp4xx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-ixp4xx.c b/drivers/i2c/busses/i2c-ixp4xx.c
index f6f5ca31fdba..013981df38af 100644
--- a/drivers/i2c/busses/i2c-ixp4xx.c
+++ b/drivers/i2c/busses/i2c-ixp4xx.c
@@ -35,6 +35,8 @@
35 35
36#include <asm/hardware.h> /* Pick up IXP4xx-specific bits */ 36#include <asm/hardware.h> /* Pick up IXP4xx-specific bits */
37 37
38static struct device_driver ixp4xx_i2c_driver;
39
38static inline int ixp4xx_scl_pin(void *data) 40static inline int ixp4xx_scl_pin(void *data)
39{ 41{
40 return ((struct ixp4xx_i2c_pins*)data)->scl_pin; 42 return ((struct ixp4xx_i2c_pins*)data)->scl_pin;
@@ -129,6 +131,8 @@ static int ixp4xx_i2c_probe(struct device *dev)
129 drv_data->algo_data.timeout = 100; 131 drv_data->algo_data.timeout = 100;
130 132
131 drv_data->adapter.id = I2C_HW_B_IXP4XX; 133 drv_data->adapter.id = I2C_HW_B_IXP4XX;
134 strlcpy(drv_data->adapter.name, ixp4xx_i2c_driver.name,
135 I2C_NAME_SIZE);
132 drv_data->adapter.algo_data = &drv_data->algo_data; 136 drv_data->adapter.algo_data = &drv_data->algo_data;
133 137
134 drv_data->adapter.dev.parent = &plat_dev->dev; 138 drv_data->adapter.dev.parent = &plat_dev->dev;