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
This commit is contained in:
Mitsuru IWASAKI 2001-09-17 15:11:55 +00:00
parent 9ad4f43281
commit 23b4e251d0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83581

View File

@ -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;
}