diff options
Diffstat (limited to 'sys/dev/acpica/acpi_container.c')
-rw-r--r-- | sys/dev/acpica/acpi_container.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/sys/dev/acpica/acpi_container.c b/sys/dev/acpica/acpi_container.c index 0f23f6b25fe1..f9903e2b2bba 100644 --- a/sys/dev/acpica/acpi_container.c +++ b/sys/dev/acpica/acpi_container.c @@ -38,7 +38,6 @@ ACPI_MODULE_NAME("CONTAINER") static int acpi_syscont_probe(device_t); static int acpi_syscont_attach(device_t); -static int acpi_syscont_detach(device_t); static int acpi_syscont_alloc_msi(device_t, device_t, int count, int maxcount, int *irqs); static int acpi_syscont_release_msi(device_t bus, device_t dev, @@ -54,7 +53,7 @@ static device_method_t acpi_syscont_methods[] = { /* Device interface */ DEVMETHOD(device_probe, acpi_syscont_probe), DEVMETHOD(device_attach, acpi_syscont_attach), - DEVMETHOD(device_detach, acpi_syscont_detach), + DEVMETHOD(device_detach, bus_generic_detach), /* Bus interface */ DEVMETHOD(bus_add_child, bus_generic_add_child), @@ -104,15 +103,9 @@ static int acpi_syscont_attach(device_t dev) { - bus_generic_probe(dev); - return (bus_generic_attach(dev)); -} - -static int -acpi_syscont_detach(device_t dev) -{ - - return (bus_generic_detach(dev)); + bus_identify_children(dev); + bus_attach_children(dev); + return (0); } static int |