summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2004-05-16 21:11:46 +0000
committerjoerg <joerg@FreeBSD.org>2004-05-16 21:11:46 +0000
commit70bc2f6a820c79a6d64db18ea981c09ffa98f005 (patch)
tree512a71645257da99c2dff6134488da1b8fd24451 /sys
parentf0d8d3856444f8ba5379b27f1b888c663cd53c01 (diff)
downloadFreeBSD-src-70bc2f6a820c79a6d64db18ea981c09ffa98f005.zip
FreeBSD-src-70bc2f6a820c79a6d64db18ea981c09ffa98f005.tar.gz
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
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/iicbus/iicbus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/iicbus/iicbus.c b/sys/dev/iicbus/iicbus.c
index 7d2070a..565a556 100644
--- a/sys/dev/iicbus/iicbus.c
+++ b/sys/dev/iicbus/iicbus.c
@@ -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);
OpenPOWER on IntegriCloud