summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpiec.c
diff options
context:
space:
mode:
authorJordan Hargrave <jordan@cvs.openbsd.org>2008-06-13 09:13:57 +0000
committerJordan Hargrave <jordan@cvs.openbsd.org>2008-06-13 09:13:57 +0000
commitefd5a5ebdd7c1a733b0e7ab881b268904ecd9147 (patch)
tree92be866999f8cc787180d3ad40fedf3f65e1acb9 /sys/dev/acpi/acpiec.c
parent62392d8d28605d490e57fc17890586357f3d92a3 (diff)
Fixed acpiec driver, _REG method required sc_ec member set before being called
ok @marco
Diffstat (limited to 'sys/dev/acpi/acpiec.c')
-rw-r--r--sys/dev/acpi/acpiec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/acpi/acpiec.c b/sys/dev/acpi/acpiec.c
index 79feae529b7..3f5117540d3 100644
--- a/sys/dev/acpi/acpiec.c
+++ b/sys/dev/acpi/acpiec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpiec.c,v 1.24 2008/06/01 17:59:55 marco Exp $ */
+/* $OpenBSD: acpiec.c,v 1.25 2008/06/13 09:13:56 jordan Exp $ */
/*
* Copyright (c) 2006 Can Erkin Acar <canacar@openbsd.org>
*
@@ -285,6 +285,7 @@ acpiec_attach(struct device *parent, struct device *self, void *aux)
printf(": Only single EC is supported\n");
return;
}
+ sc->sc_acpi->sc_ec = sc;
if (acpiec_getcrs(sc, aa)) {
printf(": Failed to read resource settings\n");
@@ -298,8 +299,6 @@ acpiec_attach(struct device *parent, struct device *self, void *aux)
acpiec_get_events(sc);
- sc->sc_acpi->sc_ec = sc;
-
dnprintf(10, "%s: GPE: %d\n", DEVNAME(sc), sc->sc_gpe);
#ifndef SMALL_KERNEL