1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

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 Wunsch 2004-05-16 21:11:46 +00:00
parent 2a779082bb
commit c2d85eaa93
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129289

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