diff options
author | 2007-04-23 18:34:42 +0000 | |
---|---|---|
committer | 2007-04-23 18:34:42 +0000 | |
commit | 3f348e3343c532e1b115f5947fd39b63cf2212c3 (patch) | |
tree | dac34c0cd411a127a65013f3b9ea02fbb428da00 | |
parent | In acpidock_softc, change sc_sens from being a one element long array to (diff) | |
download | wireguard-openbsd-3f348e3343c532e1b115f5947fd39b63cf2212c3.tar.xz wireguard-openbsd-3f348e3343c532e1b115f5947fd39b63cf2212c3.zip |
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.
-rw-r--r-- | sys/dev/acpi/acpidock.c | 4 |
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); } |