summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpi.c
diff options
context:
space:
mode:
authorJordan Hargrave <jordan@cvs.openbsd.org>2006-11-27 15:20:27 +0000
committerJordan Hargrave <jordan@cvs.openbsd.org>2006-11-27 15:20:27 +0000
commitd9fb6571d7192322eab3dc23c44470164735edba (patch)
treed3287f1882104b4f3301c7ad7135c1356c529839 /sys/dev/acpi/acpi.c
parent3c4560151200cd4b978ae3f5fe77cc21f5ad709d (diff)
Fixes for acpiprt routing
Post-parse fixup for namerefs ok kettenis@
Diffstat (limited to 'sys/dev/acpi/acpi.c')
-rw-r--r--sys/dev/acpi/acpi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index eb443762454..edc725bbfe6 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.63 2006/11/25 16:26:08 marco Exp $ */
+/* $OpenBSD: acpi.c,v 1.64 2006/11/27 15:20:26 jordan Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -658,7 +658,7 @@ acpi_foundprt(struct aml_node *node, void *arg)
memset(&aaa, 0, sizeof(aaa));
aaa.aaa_iot = sc->sc_iot;
aaa.aaa_memt = sc->sc_memt;
- aaa.aaa_node = node->parent;
+ aaa.aaa_node = node;
aaa.aaa_dev = dev;
aaa.aaa_name = "acpiprt";
@@ -782,6 +782,9 @@ acpi_attach(struct device *parent, struct device *self, void *aux)
}
}
+ /* Perform post-parsing fixups */
+ aml_postparse();
+
/* Walk AML Tree */
//aml_walkroot();