From 5e15a08100a6051db39b49bbbcaa8dde70df5cf1 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 18 Jan 2005 20:20:32 +0000 Subject: [PATCH] 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 --- sys/dev/acpica/acpi_pcib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/acpica/acpi_pcib.c b/sys/dev/acpica/acpi_pcib.c index 39f6cd54f9d..1b10ce9f675 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)