diff options
author | Michael Knudsen <mk@cvs.openbsd.org> | 2007-03-20 15:17:22 +0000 |
---|---|---|
committer | Michael Knudsen <mk@cvs.openbsd.org> | 2007-03-20 15:17:22 +0000 |
commit | d3b25c066d8aa3bc2bc403765daf736093257245 (patch) | |
tree | e1ebb9edb84ef6203c3754079e0493a8537cad1b /sys/dev/acpi/acpibat.c | |
parent | d8fdd20cc7c2b1cdedd9ac13117536c652163fc3 (diff) |
Use aml_val2int() instead of accessing v_integer directly.
`sort of ok' marco (before lock)
Diffstat (limited to 'sys/dev/acpi/acpibat.c')
-rw-r--r-- | sys/dev/acpi/acpibat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpibat.c b/sys/dev/acpi/acpibat.c index 8eedca7d31f..0c47a33fb7e 100644 --- a/sys/dev/acpi/acpibat.c +++ b/sys/dev/acpi/acpibat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpibat.c,v 1.39 2007/02/17 18:53:28 deanna Exp $ */ +/* $OpenBSD: acpibat.c,v 1.40 2007/03/20 15:17:21 mk Exp $ */ /* * Copyright (c) 2005 Marco Peereboom <marco@openbsd.org> * @@ -77,7 +77,7 @@ acpibat_attach(struct device *parent, struct device *self, void *aux) return; } - if ((sc->sc_bat_present = res.v_integer & STA_BATTERY) != 0) { + if ((sc->sc_bat_present = aml_val2int(&res) & STA_BATTERY) != 0) { acpibat_getbif(sc); acpibat_getbst(sc); printf(": %s: model: %s serial: %s type: %s oem: %s\n", |