summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2014-07-16 16:58:08 +0800
committerMax Krummenacher <max.krummenacher@toradex.com>2015-12-26 14:42:49 +0100
commitb1107206cdd5895e196626cf51cc15dcb5290444 (patch)
tree984c1d3acf016bdeef0cba913334203072a3c951 /include
parentb384db5f2c212d7439730e59c77a4675e4668076 (diff)
ACPICA: Linux: Add support to exclude <asm/acenv.h> inclusion.
The forthcoming patch will make <acpi/acpi.h> to be visible to all kernel source code. Thus for the architectures that do not support ACPI and haven't implemented <asm/acenv.h>, we need to make it excluded. Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> (cherry picked from commit d334c823b27401721591e0f1220050a41af08165)
Diffstat (limited to 'include')
-rw-r--r--include/acpi/platform/aclinux.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h
index 934bbeb1d243..b8537456dd7f 100644
--- a/include/acpi/platform/aclinux.h
+++ b/include/acpi/platform/aclinux.h
@@ -65,7 +65,9 @@
#ifdef EXPORT_ACPI_INTERFACES
#include <linux/export.h>
#endif
+#ifdef CONFIG_ACPI
#include <asm/acenv.h>
+#endif
/* Host-dependent types and defines for in-kernel ACPICA */