mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Use bus_delayed_attach_children instead of its inline implementation
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47186
This commit is contained in:
parent
ab4f969f8d
commit
5201decc8b
4 changed files with 4 additions and 4 deletions
|
|
@ -603,7 +603,7 @@ zy7_qspi_attach(device_t dev)
|
|||
zy7_qspi_add_sysctls(dev);
|
||||
|
||||
/* Attach spibus driver as a child later when interrupts work. */
|
||||
config_intrhook_oneshot((ich_func_t)bus_generic_attach, dev);
|
||||
bus_delayed_attach_children(dev);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -439,7 +439,7 @@ zy7_spi_attach(device_t dev)
|
|||
zy7_spi_add_sysctls(dev);
|
||||
|
||||
/* Attach spibus driver as a child later when interrupts work. */
|
||||
config_intrhook_oneshot((ich_func_t)bus_generic_attach, dev);
|
||||
bus_delayed_attach_children(dev);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ iicoc_attach(device_t dev)
|
|||
}
|
||||
|
||||
/* Probe and attach the iicbus when interrupts are available. */
|
||||
config_intrhook_oneshot((ich_func_t)bus_generic_attach, dev);
|
||||
bus_delayed_attach_children(dev);
|
||||
|
||||
return (0);
|
||||
|
||||
|
|
|
|||
|
|
@ -346,7 +346,7 @@ sfspi_attach(device_t dev)
|
|||
|
||||
/* Probe and attach the spibus when interrupts are available. */
|
||||
sc->parent = device_add_child(dev, "spibus", DEVICE_UNIT_ANY);
|
||||
config_intrhook_oneshot((ich_func_t)bus_generic_attach, dev);
|
||||
bus_delayed_attach_children(dev);
|
||||
|
||||
return (0);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue