i2c: Add missing DEVICE_ID_DYNAMIC
Otherwise it's not possible to register multiple identical devices. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
d5af695a87
commit
619dc48632
|
@ -252,6 +252,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 = DEVICE_ID_DYNAMIC;
|
||||
client->dev.bus = &i2c_bus;
|
||||
client->adapter = adapter;
|
||||
client->addr = chip->addr;
|
||||
|
|
Loading…
Reference in New Issue