summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorMichael Knudsen <mk@cvs.openbsd.org>2007-04-23 18:34:43 +0000
committerMichael Knudsen <mk@cvs.openbsd.org>2007-04-23 18:34:43 +0000
commit2248b55ddcb1c9e5552d37556558ed5bd73eadd3 (patch)
tree62b143e458ec16b9cb1fc8b6d9065fd88a650889 /sys/dev/acpi
parent79dcf85777a2b6cfec5fae27fe96c7144b3010b0 (diff)
When adding a device node to the list of dependant devices, don't add
the _EJD node. Instead, add the parent actual device node instead which makes more sense and makes sure that it doesn't matter if the _EJ0 node under a device node comes before the _EJD node.
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpidock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpidock.c b/sys/dev/acpi/acpidock.c
index 0d5d55a5852..a94c72ffebd 100644
--- a/sys/dev/acpi/acpidock.c
+++ b/sys/dev/acpi/acpidock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpidock.c,v 1.23 2007/04/23 17:38:30 mk Exp $ */
+/* $OpenBSD: acpidock.c,v 1.24 2007/04/23 18:34:42 mk Exp $ */
/*
* Copyright (c) 2006,2007 Michael Knudsen <mk@openbsd.org>
*
@@ -280,7 +280,7 @@ acpidock_foundejd(struct aml_node *node, void *arg)
/* XXX more than one dock? */
n = malloc(sizeof(struct aml_nodelist), M_DEVBUF, M_WAITOK);
- n->node = node;
+ n->node = node->parent;
TAILQ_INSERT_TAIL(&sc->sc_deps_h, n, entries);
}