summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2006-02-04 00:18:28 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2006-02-04 00:18:28 +0000
commit2e754b69bc70d449728a380f700a35302392b2be (patch)
tree1a74f26742a1601b29a70c7094be68be6b70c04e /sys/dev/acpi
parent10ee7040389481a51445322c1e19655caf35ffad (diff)
When ACPI_ENABLED wasn't set but the devices were it had an unknown variable.
Pointed out by ian@.
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index ea9977f8c69..6f88988940a 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.24 2006/02/03 23:55:47 jordan Exp $ */
+/* $OpenBSD: acpi.c,v 1.25 2006/02/04 00:18:27 marco Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -512,7 +512,6 @@ acpi_attach(struct device *parent, struct device *self, void *aux)
struct acpi_q *entry;
struct acpi_dsdt *p_dsdt;
paddr_t facspa;
- int idx;
sc->sc_iot = aaa->aaa_iot;
sc->sc_memt = aaa->aaa_memt;
@@ -615,6 +614,8 @@ acpi_attach(struct device *parent, struct device *self, void *aux)
* that actually does work
*/
#ifdef ACPI_ENABLE
+ int idx;
+
acpi_write_pmreg(sc, ACPIREG_SMICMD, sc->sc_fadt->acpi_enable);
idx = 0;
do {