From 2e754b69bc70d449728a380f700a35302392b2be Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Sat, 4 Feb 2006 00:18:28 +0000 Subject: When ACPI_ENABLED wasn't set but the devices were it had an unknown variable. Pointed out by ian@. --- sys/dev/acpi/acpi.c | 5 +++-- 1 file 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 * Copyright (c) 2005 Jordan Hargrave @@ -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 { -- cgit v1.2.3