mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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:
parent
7aa6584632
commit
1d0e8a50a0
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue