summaryrefslogtreecommitdiffstats
path: root/include/acpi/platform
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2014-07-16 10:58:08 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-07-23 01:10:44 +0200
commitd334c823b27401721591e0f1220050a41af08165 (patch)
treee1e85c8ee39d459c457b63cc040276f4d1376a9e /include/acpi/platform
parentACPICA: Linux: Add stub implementation of ACPICA 64-bit mathematics. (diff)
downloadlinux-d334c823b27401721591e0f1220050a41af08165.tar.xz
linux-d334c823b27401721591e0f1220050a41af08165.zip
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>
Diffstat (limited to 'include/acpi/platform')
-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 cd1f052d55bb..dfba35476b8a 100644
--- a/include/acpi/platform/aclinux.h
+++ b/include/acpi/platform/aclinux.h
@@ -70,7 +70,9 @@
#ifdef EXPORT_ACPI_INTERFACES
#include <linux/export.h>
#endif
+#ifdef CONFIG_ACPI
#include <asm/acenv.h>
+#endif
#ifndef CONFIG_ACPI