diff options
author | avg <avg@FreeBSD.org> | 2010-09-11 08:09:14 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2010-09-11 08:09:14 +0000 |
commit | e755b6fa44fba1ee7bc45ed1fff9fe10946baee7 (patch) | |
tree | 57e403d3c4aa3c0d74e05f696de56df5347caee3 /sys/dev/acpi_support/acpi_wmi.c | |
parent | 4687e7f394abae63c19cd4d10e516b0d1ee80508 (diff) | |
download | FreeBSD-src-e755b6fa44fba1ee7bc45ed1fff9fe10946baee7.zip FreeBSD-src-e755b6fa44fba1ee7bc45ed1fff9fe10946baee7.tar.gz |
make acpi_hp device a child of acpi_wmi
to properly reflect dependency between the devices/drivers
PR: kern/147858
Suggested by: jhb
Tested by: Maciej Suszko <maciej@suszko.eu>
MFC after: 1 week
Diffstat (limited to 'sys/dev/acpi_support/acpi_wmi.c')
-rw-r--r-- | sys/dev/acpi_support/acpi_wmi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/acpi_support/acpi_wmi.c b/sys/dev/acpi_support/acpi_wmi.c index 9da790c..cf70ab0 100644 --- a/sys/dev/acpi_support/acpi_wmi.c +++ b/sys/dev/acpi_support/acpi_wmi.c @@ -173,6 +173,10 @@ static device_method_t acpi_wmi_methods[] = { DEVMETHOD(device_attach, acpi_wmi_attach), DEVMETHOD(device_detach, acpi_wmi_detach), + /* bus interface */ + DEVMETHOD(bus_add_child, bus_generic_add_child), + DEVMETHOD(bus_print_child, bus_generic_print_child), + /* acpi_wmi interface */ DEVMETHOD(acpi_wmi_provides_guid_string, acpi_wmi_provides_guid_string_method), @@ -269,6 +273,11 @@ acpi_wmi_attach(device_t dev) } ACPI_SERIAL_END(acpi_wmi); + if (ret == 0) { + bus_generic_probe(dev); + ret = bus_generic_attach(dev); + } + return (ret); } |