diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2006-01-06 08:59:59 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2006-01-06 08:59:59 +0000 |
commit | 9a96907658a3e26796c6c68f7c9819fc128563ae (patch) | |
tree | 832433009ac85e3ac3765612d83d649e127564ae /sys | |
parent | 2e0177c86c8cc242881b9946206a117ede46f2cd (diff) |
Check for ACPI control availability only if ACPI_ENABLE defined.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/acpi/acpi.c | 4 |
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 |