From 2248b55ddcb1c9e5552d37556558ed5bd73eadd3 Mon Sep 17 00:00:00 2001 From: Michael Knudsen Date: Mon, 23 Apr 2007 18:34:43 +0000 Subject: 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. --- sys/dev/acpi/acpidock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/acpi') 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 * @@ -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); } -- cgit v1.2.3