summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {