PERFORCE change 101247 for review

Warner Losh imp at FreeBSD.org
Mon Jul 10 22:50:02 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=101247

Change 101247 by imp at imp_lighthouse on 2006/07/10 22:49:21

	May need to adjust the unit twice.  Once in the main loop and
	again later since this might not be a pri = 0.

Affected files ...

.. //depot/projects/arm/src/sys/kern/subr_bus.c#12 edit

Differences ...

==== //depot/projects/arm/src/sys/kern/subr_bus.c#12 (text+ko) ====

@@ -1815,6 +1815,16 @@
 		if (!child->devclass)
 			device_set_devclass(child, best->driver->name);
 		device_set_driver(child, best->driver);
+		if (child->flags & DF_WILDCARD) {
+			unit = child->unit;
+			BUS_HINT_DEVICE_UNIT(dev, child, &unit);
+			if (unit != child->unit) {
+				childdc = child->devclass;
+				devclass_delete_device(childdc, child);
+				child->unit = unit;
+				devclass_add_device(childdc, child);
+			}
+		}
 		resource_int_value(best->driver->name, child->unit,
 		    "flags", &child->devflags);
 


More information about the p4-projects mailing list