After successfully attaching an iicbus instance, instead of using a
NULL name in device_add_child(), explicitly name all of our known child drivers in order to give them a chance to attach to us. Otherwise, only the first one present would be probed and attached. Reviewed by: nsouch MFC after: 1 month
This commit is contained in:
parent
f0d8d38564
commit
70bc2f6a82
@ -140,7 +140,9 @@ iicbus_attach(device_t dev)
|
||||
#endif
|
||||
|
||||
/* attach any known device */
|
||||
device_add_child(dev, NULL, -1);
|
||||
device_add_child(dev, "ic", -1);
|
||||
device_add_child(dev, "iic", -1);
|
||||
device_add_child(dev, "iicsmb", -1);
|
||||
|
||||
bus_generic_attach(dev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user