i2c: Add info->archdata field

If present the info->archdata is copied into the dev->archdata.
Some (OpenFirmware) platforms need it.

Signed-off-by: Anton Vorontsov <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
This commit is contained in:
Anton Vorontsov 2008-10-22 20:21:33 +02:00 • committed by Jean Delvare
commit 11f1f2afd6
2 changed files with 5 additions and 0 deletions

View file

@ -266,6 +266,9 @@ i2c_new_device(struct i2c_adapter *adap, struct i2c_board_info const *info)
client->dev.platform_data = info->platform_data;
if (info->archdata)
client->dev.archdata = *info->archdata;
client->flags = info->flags;
client->addr = info->addr;
client->irq = info->irq;