summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorJordan Hargrave <jordan@cvs.openbsd.org>2010-06-27 09:13:37 +0000
committerJordan Hargrave <jordan@cvs.openbsd.org>2010-06-27 09:13:37 +0000
commit2f4de9c94a57e1ed574f0b22d1297764346f9aee (patch)
tree7f491533bf0f0e4082ff4feb5c3bfb43d00a4422 /sys/dev/acpi
parent00e177111765ef40c7c1d78a11541bbd728c4a37 (diff)
Cleanup aml_find_node calls
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpidock.c4
-rw-r--r--sys/dev/acpi/acpipwrres.c10
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/acpi/acpidock.c b/sys/dev/acpi/acpidock.c
index e1f6d6dd8b5..e63253902d1 100644
--- a/sys/dev/acpi/acpidock.c
+++ b/sys/dev/acpi/acpidock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpidock.c,v 1.38 2009/06/07 13:18:04 mk Exp $ */
+/* $OpenBSD: acpidock.c,v 1.39 2010/06/27 09:13:36 jordan Exp $ */
/*
* Copyright (c) 2006,2007 Michael Knudsen <mk@openbsd.org>
*
@@ -107,7 +107,7 @@ acpidock_attach(struct device *parent, struct device *self, void *aux)
sensordev_install(&sc->sc_sensdev);
TAILQ_INIT(&sc->sc_deps_h);
- aml_find_node(aml_root.child, "_EJD", acpidock_foundejd, sc);
+ aml_find_node(&aml_root, "_EJD", acpidock_foundejd, sc);
aml_register_notify(sc->sc_devnode, aa->aaa_dev,
acpidock_notify, sc, ACPIDEV_NOPOLL);
diff --git a/sys/dev/acpi/acpipwrres.c b/sys/dev/acpi/acpipwrres.c
index eeb02c84090..3981a53969f 100644
--- a/sys/dev/acpi/acpipwrres.c
+++ b/sys/dev/acpi/acpipwrres.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpipwrres.c,v 1.2 2009/09/02 04:45:20 miod Exp $ */
+/* $OpenBSD: acpipwrres.c,v 1.3 2010/06/27 09:13:36 jordan Exp $ */
/*
* Copyright (c) 2009 Paul Irofti <pirofti@openbsd.org>
*
@@ -126,10 +126,10 @@ acpipwrres_attach(struct device *parent, struct device *self, void *aux)
/* Get the list of consumers */
TAILQ_INIT(&sc->sc_cons);
- aml_find_node(aml_root.child, "_PRW", acpipwrres_foundcons, sc);
- aml_find_node(aml_root.child, "_PR0", acpipwrres_foundcons, sc);
- aml_find_node(aml_root.child, "_PR1", acpipwrres_foundcons, sc);
- aml_find_node(aml_root.child, "_PR2", acpipwrres_foundcons, sc);
+ aml_find_node(&aml_root, "_PRW", acpipwrres_foundcons, sc);
+ aml_find_node(&aml_root, "_PR0", acpipwrres_foundcons, sc);
+ aml_find_node(&aml_root, "_PR1", acpipwrres_foundcons, sc);
+ aml_find_node(&aml_root, "_PR2", acpipwrres_foundcons, sc);
}
int