diff options
Diffstat (limited to 'sys/dev/acpi/acpiac.c')
-rw-r--r-- | sys/dev/acpi/acpiac.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/acpi/acpiac.c b/sys/dev/acpi/acpiac.c index 899d2344229..3e769887041 100644 --- a/sys/dev/acpi/acpiac.c +++ b/sys/dev/acpi/acpiac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpiac.c,v 1.21 2008/05/16 06:50:55 dlg Exp $ */ +/* $OpenBSD: acpiac.c,v 1.22 2008/06/01 17:59:55 marco Exp $ */ /* * Copyright (c) 2005 Marco Peereboom <marco@openbsd.org> * @@ -66,9 +66,9 @@ acpiac_attach(struct device *parent, struct device *self, void *aux) struct acpi_attach_args *aa = aux; sc->sc_acpi = (struct acpi_softc *)parent; - sc->sc_devnode = aa->aaa_node->child; + sc->sc_devnode = aa->aaa_node; - aml_register_notify(sc->sc_devnode->parent, aa->aaa_dev, + aml_register_notify(sc->sc_devnode, aa->aaa_dev, acpiac_notify, sc, ACPIDEV_NOPOLL); acpiac_getsta(sc); @@ -125,7 +125,7 @@ acpiac_notify(struct aml_node *node, int notify_type, void *arg) struct acpiac_softc *sc = arg; dnprintf(10, "acpiac_notify: %.2x %s\n", notify_type, - sc->sc_devnode->parent->name); + sc->sc_devnode->name); switch (notify_type) { case 0x00: |