summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi.c
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>2001-09-17 15:11:55 +0000
committeriwasaki <iwasaki@FreeBSD.org>2001-09-17 15:11:55 +0000
commit9bf92ac71b7e48da23a44aa7fda96ec361c55638 (patch)
tree1a5bf75a96bdeb32e16700385cabb5c11fba4687 /sys/dev/acpica/acpi.c
parent825dec232ff473eac788de7799e2bfc405bb276f (diff)
downloadFreeBSD-src-9bf92ac71b7e48da23a44aa7fda96ec361c55638.zip
FreeBSD-src-9bf92ac71b7e48da23a44aa7fda96ec361c55638.tar.gz
Call acpi_DeviceIsPresent() only for devices. This should make
non-ACPI_TYPE_DEVICE devices (such as acpi_tz and acpi_cpu) enabled again. Reviewed by: msmith
Diffstat (limited to 'sys/dev/acpica/acpi.c')
-rw-r--r--sys/dev/acpica/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index e5c1194..325d261 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -790,7 +790,7 @@ acpi_probe_child(ACPI_HANDLE handle, UINT32 level, void *context, void **status)
* leave it disabled (so that we have a device_t attached to
* the handle, but we don't probe it).
*/
- if (!acpi_DeviceIsPresent(child)) {
+ if ((type == ACPI_TYPE_DEVICE) && (!acpi_DeviceIsPresent(child))) {
device_disable(child);
break;
}
OpenPOWER on IntegriCloud