Date: Mon, 10 Jul 2006 22:49:38 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 101247 for review Message-ID: <200607102249.k6AMncuw090638@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=101247 Change 101247 by imp@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607102249.k6AMncuw090638>