mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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:
parent
beb58aa39e
commit
12a917f69d
15 changed files with 19 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue