diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2008-07-23 00:20:36 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2008-07-23 00:20:36 +0000 |
commit | 43760b3967ae60c95186e514a46eca1556c53cda (patch) | |
tree | 56baf98985902d62b369c8bcda9dcb16d74a272c | |
parent | fbe219bd235dfb3465ac762683f46f5cc5c67dd4 (diff) |
move the aml_register_notify() call below for better debugging output.
marco@ ok.
-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 df35b923eea..6554dfebe0b 100644 --- a/sys/dev/acpi/acpiac.c +++ b/sys/dev/acpi/acpiac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpiac.c,v 1.24 2008/07/18 03:54:18 marco Exp $ */ +/* $OpenBSD: acpiac.c,v 1.25 2008/07/23 00:20:35 fgsch Exp $ */ /* * Copyright (c) 2005 Marco Peereboom <marco@openbsd.org> * @@ -68,9 +68,6 @@ acpiac_attach(struct device *parent, struct device *self, void *aux) sc->sc_acpi = (struct acpi_softc *)parent; sc->sc_devnode = aa->aaa_node; - aml_register_notify(sc->sc_devnode, aa->aaa_dev, - acpiac_notify, sc, ACPIDEV_NOPOLL); - acpiac_getsta(sc); printf(": AC unit "); if (sc->sc_ac_stat == PSR_ONLINE) @@ -88,6 +85,9 @@ acpiac_attach(struct device *parent, struct device *self, void *aux) sensor_attach(&sc->sc_sensdev, &sc->sc_sens[0]); sensordev_install(&sc->sc_sensdev); sc->sc_sens[0].value = sc->sc_ac_stat; + + aml_register_notify(sc->sc_devnode, aa->aaa_dev, + acpiac_notify, sc, ACPIDEV_NOPOLL); } void |