From 8b0cabf08a8a73f93206ccb4d96db6d1e3a86481 Mon Sep 17 00:00:00 2001 From: Jordan Hargrave Date: Thu, 1 Jul 2010 01:14:37 +0000 Subject: Fix subordinate bus # for multi-root PCI buses ok marco, kettenis --- sys/dev/acpi/acpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 9066eabb651..49808b848de 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.165 2010/06/30 22:41:43 thib Exp $ */ +/* $OpenBSD: acpi.c,v 1.166 2010/07/01 01:14:36 jordan Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert * Copyright (c) 2005 Jordan Hargrave @@ -578,6 +578,7 @@ acpi_getpci(struct aml_node *node, void *arg) res.v_buffer, acpi_getminbus, &pci->bus); } + pci->sub = pci->bus; node->pci = pci; dnprintf(10, "found PCI root: %s %d\n", aml_nodename(node), pci->bus); -- cgit v1.2.3