OpenCloudOS-Kernel/drivers/platform/x86
Lv Zheng 8b48463f89 ACPI: Clean up inclusions of ACPI header files
Replace direct inclusions of <acpi/acpi.h>, <acpi/acpi_bus.h> and
<acpi/acpi_drivers.h>, which are incorrect, with <linux/acpi.h>
inclusions and remove some inclusions of those files that aren't
necessary.

First of all, <acpi/acpi.h>, <acpi/acpi_bus.h> and <acpi/acpi_drivers.h>
should not be included directly from any files that are built for
CONFIG_ACPI unset, because that generally leads to build warnings about
undefined symbols in !CONFIG_ACPI builds.  For CONFIG_ACPI set,
<linux/acpi.h> includes those files and for CONFIG_ACPI unset it
provides stub ACPI symbols to be used in that case.

Second, there are ordering dependencies between those files that always
have to be met.  Namely, it is required that <acpi/acpi_bus.h> be included
prior to <acpi/acpi_drivers.h> so that the acpi_pci_root declarations the
latter depends on are always there.  And <acpi/acpi.h> which provides
basic ACPICA type declarations should always be included prior to any other
ACPI headers in CONFIG_ACPI builds.  That also is taken care of including
<linux/acpi.h> as appropriate.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com> (drivers/pci stuff)
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> (Xen stuff)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2013-12-07 01:03:14 +01:00
..
Kconfig platform/x86: fix asus-wmi build error 2013-10-23 07:57:57 +01:00
Makefile Add trivial driver to disable Intel Smart Connect 2013-07-10 15:42:49 -04:00
acer-wmi.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
acerhdf.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
amilo-rfkill.c amilo-rfkill: Enable using amilo-rfkill with the FSC Amilo L1310. 2013-09-05 08:52:12 -04:00
apple-gmux.c More ACPI and power management updates for 3.13-rc1 2013-11-20 13:25:04 -08:00
asus-laptop.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
asus-nb-wmi.c asus-nb-wmi: set wapf=4 for ASUSTeK COMPUTER INC. 1015E/U 2013-07-10 15:42:49 -04:00
asus-wmi.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
asus-wmi.h asus-wmi: always report brightness key events 2013-02-27 08:30:37 -05:00
chromeos_laptop.c Platform: x86: chromeos_laptop : Add basic platform data for atmel devices 2013-03-08 16:03:29 -08:00
classmate-laptop.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
compal-laptop.c platform: x86: remove unnecessary platform_set_drvdata() 2013-09-05 08:52:18 -04:00
dell-laptop.c dell-laptop: fix error return code in dell_init() 2013-07-08 11:46:58 -04:00
dell-wmi-aio.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
dell-wmi.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
eeepc-laptop.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
eeepc-wmi.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
fujitsu-laptop.c fujitsu-laptop: convert acpi_evaluate_object() to acpi_evaluate_integer() 2013-09-24 01:37:57 +02:00
fujitsu-tablet.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
hdaps.c platform / x86 / PM: Fix unused function warnings for CONFIG_PM_SLEEP 2012-08-10 14:29:43 +02:00
hp-wmi.c hp_wmi: Fix unregister order in hp_wmi_rfkill_setup() 2013-09-05 08:51:59 -04:00
hp_accel.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
ibm_rtl.c efi: Make 'efi_enabled' a function to query EFI facilities 2013-01-30 11:51:59 -08:00
ideapad-laptop.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
intel-rst.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
intel-smartconnect.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
intel_ips.c drivers/platform/x86/intel_ips: Convert to module_pci_driver 2013-07-10 15:42:47 -04:00
intel_ips.h drm/i915, intel_ips: When i915 loads after IPS, make IPS relink to i915. 2010-12-23 09:51:36 +00:00
intel_menlow.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
intel_mid_powerbtn.c platform: x86: remove unnecessary platform_set_drvdata() 2013-09-05 08:52:18 -04:00
intel_mid_thermal.c platform: x86: remove unnecessary platform_set_drvdata() 2013-09-05 08:52:18 -04:00
intel_oaktrail.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
intel_pmic_gpio.c x86 platform drivers: fix gpio leak 2013-07-10 15:42:51 -04:00
intel_scu_ipc.c intel_mid: Renamed *mrst* to *intel_mid* 2013-10-17 16:40:47 -07:00
intel_scu_ipcutil.c intel_scu_ipc: Remove Moorestown support 2012-03-20 12:02:02 -04:00
msi-laptop.c x86: msi-laptop: fix memleak 2013-07-10 15:42:40 -04:00
msi-wmi.c msi-wmi: Add MSI Wind support 2013-02-24 14:49:54 -08:00
mxm-wmi.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
panasonic-laptop.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
pvpanic.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
samsung-laptop.c samsung-laptop: Disable on EFI hardware 2013-01-30 11:52:11 -08:00
samsung-q10.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
sony-laptop.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
tc1100-wmi.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
thinkpad_acpi.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
topstar-laptop.c topstar-laptop: convert acpi_evaluate_object() to acpi_execute_simple_method() 2013-09-24 01:37:54 +02:00
toshiba_acpi.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
toshiba_bluetooth.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
wmi.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
xo1-rfkill.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
xo15-ebook.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00