summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpi.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-11-06 22:12:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-11-06 22:12:35 +0000
commit45ab20956b0bde6a2da9aaa4de89b7957e8f7ec2 (patch)
tree04f3a2ba68e30cbcb2dfe68a6d120ef5322f4a6f /sys/dev/acpi/acpi.c
parentbc4381eaa59700e12f858445cb324f27f443ca68 (diff)
all ACPI_ENABLE kernels need acpi_interrupt()
Diffstat (limited to 'sys/dev/acpi/acpi.c')
-rw-r--r--sys/dev/acpi/acpi.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index 9bedb436b2b..7e308405c96 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.95 2007/11/06 01:05:28 deraadt Exp $ */
+/* $OpenBSD: acpi.c,v 1.96 2007/11/06 22:12:34 deraadt Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -1109,8 +1109,7 @@ acpi_write_pmreg(struct acpi_softc *sc, int reg, int offset, int regval)
sc->sc_pmregs[reg].name, sc->sc_pmregs[reg].addr, offset, regval);
}
-/* move all stuff that doesn't go on the boot media in here */
-#ifndef SMALL_KERNEL
+#ifdef ACPI_ENABLE
int
acpi_interrupt(void *arg)
{
@@ -1158,6 +1157,10 @@ acpi_interrupt(void *arg)
return (processed);
}
+#endif /* ACPI_ENABLE */
+
+/* move all stuff that doesn't go on the boot media in here */
+#ifndef SMALL_KERNEL
void
acpi_enable_onegpe(struct acpi_softc *sc, int gpe, int enable)