diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-11-29 17:16:34 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-12-03 18:50:53 -0500 |
commit | a1518d3bbc15d89ccf33056ffa8b3a63de118d24 (patch) | |
tree | 8e6bcc533a66c71988e960c676d1f321c285f266 | |
parent | fbb988be7f691599f17c6915c605bd09ec4318b4 (diff) |
PM / Kconfig: Do not select PM directly from Kconfig files
It is not valid to select CONFIG_PM directly without selecting
CONFIG_PM_SLEEP or CONFIG_PM_RUNTIME too, because that breaks
dependencies (ia64 does that) and it is not necessary to select
CONFIG_PM directly if CONFIG_PM_SLEEP or CONFIG_PM_RUNTIME is
selected, because CONFIG_PM will be set automatically in that
case (sh does that).
Fix those mistakes.
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | arch/ia64/Kconfig | 1 | ||||
-rw-r--r-- | arch/sh/Kconfig | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig index 55bc92ca2ce6..536d13b0bea6 100644 --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig | |||
@@ -11,7 +11,6 @@ config IA64 | |||
11 | select PCI if (!IA64_HP_SIM) | 11 | select PCI if (!IA64_HP_SIM) |
12 | select ACPI if (!IA64_HP_SIM) | 12 | select ACPI if (!IA64_HP_SIM) |
13 | select ARCH_MIGHT_HAVE_ACPI_PDC if ACPI | 13 | select ARCH_MIGHT_HAVE_ACPI_PDC if ACPI |
14 | select PM if (!IA64_HP_SIM) | ||
15 | select HAVE_UNSTABLE_SCHED_CLOCK | 14 | select HAVE_UNSTABLE_SCHED_CLOCK |
16 | select HAVE_IDE | 15 | select HAVE_IDE |
17 | select HAVE_OPROFILE | 16 | select HAVE_OPROFILE |
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 244fb4c81e25..a1403470f80e 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -222,7 +222,6 @@ config CPU_SHX3 | |||
222 | config ARCH_SHMOBILE | 222 | config ARCH_SHMOBILE |
223 | bool | 223 | bool |
224 | select ARCH_SUSPEND_POSSIBLE | 224 | select ARCH_SUSPEND_POSSIBLE |
225 | select PM | ||
226 | select PM_RUNTIME | 225 | select PM_RUNTIME |
227 | 226 | ||
228 | config CPU_HAS_PMU | 227 | config CPU_HAS_PMU |