[PATCH 4/7] i2c: device id default to -1 for auto assignment
Marc Reilly
marc at cpdesign.com.au
Sun Jul 29 03:41:51 EDT 2012
Signed-off-by: Marc Reilly <marc at cpdesign.com.au>
---
drivers/i2c/i2c.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/i2c/i2c.c b/drivers/i2c/i2c.c
index 15f5507..c0d8fa2 100644
--- a/drivers/i2c/i2c.c
+++ b/drivers/i2c/i2c.c
@@ -251,6 +251,7 @@ struct i2c_client *i2c_new_device(struct i2c_adapter *adapter,
strcpy(client->dev.name, chip->type);
client->dev.type_data = client;
client->dev.platform_data = chip->platform_data;
+ client->dev.id = -1;
client->adapter = adapter;
client->addr = chip->addr;
--
1.7.7
More information about the barebox
mailing list