svn commit: r256798 - head/sys/dev/fdt

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sun Oct 20 18:38:20 UTC 2013


Author: nwhitehorn
Date: Sun Oct 20 18:38:19 2013
New Revision: 256798
URL: http://svnweb.freebsd.org/changeset/base/256798

Log:
  Some nexus devices add wildcard children. Since fdtbus_probe returned
  BUS_PROBE_DEFAULT, it would attach to them all, producing both many
  fdtbus instances and preventing other devices from attaching. Instead
  return BUS_PROBE_NOWILDCARD, which exists for exactly this purpose.

Modified:
  head/sys/dev/fdt/fdtbus.c

Modified: head/sys/dev/fdt/fdtbus.c
==============================================================================
--- head/sys/dev/fdt/fdtbus.c	Sun Oct 20 18:13:06 2013	(r256797)
+++ head/sys/dev/fdt/fdtbus.c	Sun Oct 20 18:38:19 2013	(r256798)
@@ -161,7 +161,7 @@ fdtbus_probe(device_t dev)
 	device_set_desc(dev, "FDT main bus");
 	if (!bootverbose)
 		device_quiet(dev);
-	return (BUS_PROBE_DEFAULT);
+	return (BUS_PROBE_NOWILDCARD);
 }
 
 static int


More information about the svn-src-head mailing list