Browse Source

ACPI / proc: make ACPI_PROCFS_POWER X86 only

The ACPI procfs power interface is initialized by compilation units
that are only selectable on X86 platforms. Since its usage is
deprecated and it cannot even be used on platforms other than X86
it should be compiled in only on X86 platforms.

This patch makes CONFIG_ACPI_PROCFS_POWER dependent on X86, so
that other architectures are prevented from compiling it in for
no purpose.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Lorenzo Pieralisi 10 years ago
parent
commit
bbf55ae19f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/acpi/Kconfig

+ 1 - 1
drivers/acpi/Kconfig

@@ -62,7 +62,7 @@ config ACPI_SLEEP
 
 
 config ACPI_PROCFS_POWER
 config ACPI_PROCFS_POWER
 	bool "Deprecated power /proc/acpi directories"
 	bool "Deprecated power /proc/acpi directories"
-	depends on PROC_FS
+	depends on X86 && PROC_FS
 	help
 	help
 	  For backwards compatibility, this option allows
 	  For backwards compatibility, this option allows
           deprecated power /proc/acpi/ directories to exist, even when
           deprecated power /proc/acpi/ directories to exist, even when