diff options
author | jhb <jhb@FreeBSD.org> | 2005-01-18 20:20:32 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-01-18 20:20:32 +0000 |
commit | de6108a4c0f3a4ec2be152a66535066f67c09018 (patch) | |
tree | 43141724316c7c327006849f30db16cc273f9f73 /sys/dev/acpica/acpi_pcib.c | |
parent | 0307a381d7831dd80319bc6516965ca63471668b (diff) | |
download | FreeBSD-src-de6108a4c0f3a4ec2be152a66535066f67c09018.zip FreeBSD-src-de6108a4c0f3a4ec2be152a66535066f67c09018.tar.gz |
For the sake of consistency, look up link devices relative to the root
object (/) rather than the pci bus object when walking the _PRT to force
attach devices. We already look up relative to the root object when doing
interrupt routing.
Suggested by: njl
Diffstat (limited to 'sys/dev/acpica/acpi_pcib.c')
-rw-r--r-- | sys/dev/acpica/acpi_pcib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_pcib.c b/sys/dev/acpica/acpi_pcib.c index 39f6cd5..1b10ce9 100644 --- a/sys/dev/acpica/acpi_pcib.c +++ b/sys/dev/acpica/acpi_pcib.c @@ -98,8 +98,7 @@ prt_attach_devices(ACPI_PCI_ROUTING_TABLE *entry, void *arg) /* Lookup the associated handle and device. */ pcib = (device_t)arg; - if (ACPI_FAILURE(AcpiGetHandle(acpi_get_handle(pcib), entry->Source, - &handle))) + if (ACPI_FAILURE(AcpiGetHandle(ACPI_ROOT_OBJECT, entry->Source, &handle))) return; child = acpi_get_device(handle); if (child == NULL) |