diff options
| author | Mike Smith <msmith@FreeBSD.org> | 2001-09-15 04:14:31 +0000 |
|---|---|---|
| committer | Mike Smith <msmith@FreeBSD.org> | 2001-09-15 04:14:31 +0000 |
| commit | b519f9d660f157c68cfb7d0588dfa316f25aa3e1 (patch) | |
| tree | c97c02600d9c152e6af7b0b486e743647946121e /sys/dev | |
| parent | aa2b4bc4131385401f9840c5c1e71fd9bb94d585 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/acpica/acpi.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 3edd3f80d102..e5c1194155e7 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -786,6 +786,16 @@ acpi_probe_child(ACPI_HANDLE handle, UINT32 level, void *context, void **status) acpi_set_handle(child, handle); /* + * Check that the device is present. If it's not present, + * leave it disabled (so that we have a device_t attached to + * the handle, but we don't probe it). + */ + if (!acpi_DeviceIsPresent(child)) { + device_disable(child); + break; + } + + /* * Get the device's resource settings and attach them. * Note that if the device has _PRS but no _CRS, we need * to decide when it's appropriate to try to configure the |
