summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpimadt.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-12-05 19:17:15 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-12-05 19:17:15 +0000
commit889140cc7443199609393b489e13d395e9e062a1 (patch)
tree9e57175bdada4e31c27b49ac718d0d24dd92e2d2 /sys/dev/acpi/acpimadt.c
parent52e7566f48bd54f2a0a319139b4ca8625857a49c (diff)
Hang acpi(4) below bios(4) instead of mainbus(4). This lets us move acpi(4)
before pcibios(4), and then.... if acpi(4) attaches, skip pcibios(4) since it messes the machines up. Fixes claudio's HP dl320 G5, and almost assuredly others. ok kettenis
Diffstat (limited to 'sys/dev/acpi/acpimadt.c')
-rw-r--r--sys/dev/acpi/acpimadt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpimadt.c b/sys/dev/acpi/acpimadt.c
index f7230419249..4e98d561148 100644
--- a/sys/dev/acpi/acpimadt.c
+++ b/sys/dev/acpi/acpimadt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpimadt.c,v 1.15 2007/11/18 21:52:03 kettenis Exp $ */
+/* $OpenBSD: acpimadt.c,v 1.16 2007/12/05 19:17:13 deraadt Exp $ */
/*
* Copyright (c) 2006 Mark Kettenis <kettenis@openbsd.org>
*
@@ -119,7 +119,7 @@ void
acpimadt_attach(struct device *parent, struct device *self, void *aux)
{
struct acpi_softc *acpi_sc = (struct acpi_softc *)parent;
- struct device *mainbus = parent->dv_parent;
+ struct device *mainbus = parent->dv_parent->dv_parent;
struct acpi_attach_args *aaa = aux;
struct acpi_madt *madt = (struct acpi_madt *)aaa->aaa_table;
caddr_t addr = (caddr_t)(madt + 1);