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 <stb@lassitu.de>
Reviewed by:	imp
This commit is contained in:
Adrian Chadd 2012-04-21 04:17:30 +00:00
parent 7aa6584632
commit 1d0e8a50a0

View file

@ -237,11 +237,14 @@ nexus_hinted_child(device_t bus, const char *dname, int dunit)
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;