summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorCan Erkin Acar <canacar@cvs.openbsd.org>2006-10-14 19:59:52 +0000
committerCan Erkin Acar <canacar@cvs.openbsd.org>2006-10-14 19:59:52 +0000
commitbf3afa89ff8a372748f58d867455e23d5bfc871d (patch)
tree6eff446b52f05ca11d0e113f71434babcb32b529 /sys
parenta0d780a189224f578ec7cedd2cc831015f335a4f (diff)
Fix the checks broken during conversion to new code. The Embedded
Controller is now detected correctly. ok marco@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/acpi/acpiec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/acpi/acpiec.c b/sys/dev/acpi/acpiec.c
index 0d826215e92..bd0274aad05 100644
--- a/sys/dev/acpi/acpiec.c
+++ b/sys/dev/acpi/acpiec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpiec.c,v 1.5 2006/10/12 18:20:39 marco Exp $ */
+/* $OpenBSD: acpiec.c,v 1.6 2006/10/14 19:59:51 canacar Exp $ */
/*
* Copyright (c) 2006 Can Erkin Acar <canacar@openbsd.org>
*
@@ -445,7 +445,7 @@ acpiec_getcrs(struct acpiec_softc *sc, struct acpi_attach_args *aa)
char *buf;
int size, ret;
- if (!aml_evalname(sc->sc_acpi, sc->sc_devnode, "_GPE", 0, NULL, &res)) {
+ if (aml_evalname(sc->sc_acpi, sc->sc_devnode, "_GPE", 0, NULL, &res)) {
dnprintf(10, "%s: no _GPE\n", DEVNAME(sc));
return (1);
}
@@ -453,7 +453,7 @@ acpiec_getcrs(struct acpiec_softc *sc, struct acpi_attach_args *aa)
sc->sc_gpe = aml_val2int(&res);
aml_freevalue(&res);
- if (!aml_evalname(sc->sc_acpi, sc->sc_devnode, "_CRS", 0, NULL, &res)) {
+ if (aml_evalname(sc->sc_acpi, sc->sc_devnode, "_CRS", 0, NULL, &res)) {
dnprintf(10, "%s: no _CRS\n", DEVNAME(sc));
return (1);
}