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:
joerg 2004-05-16 21:11:46 +00:00
parent f0d8d38564
commit 70bc2f6a82

View File

@ -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);