Author: adrian Date: Sat Apr 21 04:17:30 2012 New Revision: 234525 URL: http://svn.freebsd.org/changeset/base/234525
Log: Allow for MIPS devices to have a specific probe/attach order. The default priority is now '1000' rather than '0'. This may cause some unforseen regressions. Submitted by: Stefan Bethke <s...@lassitu.de> Reviewed by: imp Modified: head/sys/mips/mips/nexus.c Modified: head/sys/mips/mips/nexus.c ============================================================================== --- head/sys/mips/mips/nexus.c Sat Apr 21 01:51:16 2012 (r234524) +++ head/sys/mips/mips/nexus.c Sat Apr 21 04:17:30 2012 (r234525) @@ -237,11 +237,14 @@ nexus_hinted_child(device_t bus, const c device_t child; long maddr; int msize; + int order; int result; int irq; int mem_hints_count; - child = BUS_ADD_CHILD(bus, 0, dname, dunit); + if ((resource_int_value(dname, dunit, "order", &order)) != 0) + order = 1000; + child = BUS_ADD_CHILD(bus, order, dname, dunit); if (child == NULL) return; _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"