i2c: Declare more i2c_adapter parent devices

Declare the parent device of i2c_adapter devices each time we can
easily do so. It makes the i2c_adapter appear at the right place in
the device tree, rather than as a platform device.

Signed-off-by: Jean Delvare <[email protected]>
Cc: David Brownell <[email protected]>
Cc: Len Brown <[email protected]>
Cc: Jordan Crouse <[email protected]>
Cc: Jody McIntyre <[email protected]>
Cc: Stefan Richter <[email protected]>
Cc: [email protected]
Cc: Petr Vandrovec <[email protected]>
This commit is contained in:
Jean Delvare 2007-02-13 22:09:03 +01:00 • committed by Jean Delvare
commit 12a917f69d
15 changed files with 19 additions and 3 deletions

View file

@ -115,6 +115,7 @@ static int i2c_bus_reg(struct i2c_bit_adapter* b, struct matrox_fb_info* minfo,
minfo->fbcon.node);
i2c_set_adapdata(&b->adapter, b);
b->adapter.algo_data = &b->bac;
b->adapter.dev.parent = &ACCESS_FBINFO(pcidev)->dev;
b->bac = matrox_i2c_algo_template;
b->bac.data = b;
err = i2c_bit_add_bus(&b->adapter);