summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpidock.c
diff options
context:
space:
mode:
authorJordan Hargrave <jordan@cvs.openbsd.org>2009-03-13 18:53:51 +0000
committerJordan Hargrave <jordan@cvs.openbsd.org>2009-03-13 18:53:51 +0000
commitd1355341bf1d3406f5039f1c3aa406605bc0ef83 (patch)
tree8d2610f957dbc133609c5617beac1a9358864ebb /sys/dev/acpi/acpidock.c
parent5f2e066e8f14b83f7b881d72ffebb19d599289c1 (diff)
Fixup in acpidock for aml_evalinteger
Reported by guenther ok marco@
Diffstat (limited to 'sys/dev/acpi/acpidock.c')
-rw-r--r--sys/dev/acpi/acpidock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpidock.c b/sys/dev/acpi/acpidock.c
index 8826e5d554c..b35ad42b9c0 100644
--- a/sys/dev/acpi/acpidock.c
+++ b/sys/dev/acpi/acpidock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpidock.c,v 1.31 2009/03/11 20:37:46 jordan Exp $ */
+/* $OpenBSD: acpidock.c,v 1.32 2009/03/13 18:53:50 jordan Exp $ */
/*
* Copyright (c) 2006,2007 Michael Knudsen <mk@openbsd.org>
*
@@ -121,7 +121,7 @@ acpidock_status(struct acpidock_softc *sc)
int64_t sta;
int rv;
- if (aml_evalname(sc->sc_acpi, sc->sc_devnode, "_STA", 0, NULL,
+ if (aml_evalinteger(sc->sc_acpi, sc->sc_devnode, "_STA", 0, NULL,
&sta) != 0) {
sta = 0;
rv = 0;