summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2006-01-06 08:59:59 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2006-01-06 08:59:59 +0000
commit9a96907658a3e26796c6c68f7c9819fc128563ae (patch)
tree832433009ac85e3ac3765612d83d649e127564ae
parent2e0177c86c8cc242881b9946206a117ede46f2cd (diff)
Check for ACPI control availability only if ACPI_ENABLE defined.
-rw-r--r--sys/dev/acpi/acpi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index 5b5c103c5e3..b0de17b77f9 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.18 2006/01/06 08:58:20 grange Exp $ */
+/* $OpenBSD: acpi.c,v 1.19 2006/01/06 08:59:58 grange Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -421,6 +421,7 @@ acpi_attach(struct device *parent, struct device *self, void *aux)
return;
}
+#ifdef ACPI_ENABLE
/*
* Check if we are able to enable ACPI control
*/
@@ -429,6 +430,7 @@ acpi_attach(struct device *parent, struct device *self, void *aux)
printf(": ACPI control unavailable\n");
return;
}
+#endif
/*
* Load the DSDT from the FADT pointer -- use the