diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2008-10-22 22:21:33 +0400 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2008-10-22 22:21:33 +0400 |
commit | 11f1f2afd6b07729b12aaba479344d7f12d88ff9 (patch) | |
tree | b0744f435b33869d9b2bb832f1df7cb5c9c6f6bc /drivers/i2c/i2c-core.c | |
parent | 02cf617282c6917484410f86ded3f2d99a05f098 (diff) | |
download | linux-11f1f2afd6b07729b12aaba479344d7f12d88ff9.tar.xz |
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 <avorontsov@ru.mvista.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c/i2c-core.c')
-rw-r--r-- | drivers/i2c/i2c-core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 42e852d79ffa..5a485c22660a 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c @@ -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; |