cpuidle / kirkwood: remove redundant Kconfig option
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 12 Mar 2013 09:27:55 +0000 (09:27 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 31 Mar 2013 23:10:27 +0000 (01:10 +0200)
When the CPU_IDLE and the ARCH_KIRKWOOD options are set it is
pointless to define a new option CPU_IDLE_KIRKWOOD because it
is redundant.

The Makefile drivers directory contains a condition to compile
the cpuidle drivers:

obj-$(CONFIG_CPU_IDLE)          += cpuidle/

Hence, if CPU_IDLE is not set we won't enter this directory.

This patch removes the useless Kconfig option and replaces the
condition in the Makefile by CONFIG_ARCH_KIRKWOOD.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/arm/configs/kirkwood_defconfig
drivers/cpuidle/Kconfig
drivers/cpuidle/Makefile

index 13482ea58b09e2007e140b87b66ac151938b036c..93f3794ba5cb8d66c0db6cb1ba393ed2710f1552 100644 (file)
@@ -56,7 +56,6 @@ CONFIG_AEABI=y
 CONFIG_ZBOOT_ROM_TEXT=0x0
 CONFIG_ZBOOT_ROM_BSS=0x0
 CONFIG_CPU_IDLE=y
-CONFIG_CPU_IDLE_KIRKWOOD=y
 CONFIG_NET=y
 CONFIG_PACKET=y
 CONFIG_UNIX=y
index 071e2c3eec4f1114c667b233a0a36539cbe70501..c4cc27e5c8a5c22e5439c8ed7ceed322ed45eb8a 100644 (file)
@@ -39,10 +39,4 @@ config CPU_IDLE_CALXEDA
        help
          Select this to enable cpuidle on Calxeda processors.
 
-config CPU_IDLE_KIRKWOOD
-       bool "CPU Idle Driver for Kirkwood processors"
-       depends on ARCH_KIRKWOOD
-       help
-         Select this to enable cpuidle on Kirkwood processors.
-
 endif
index 24c6e7d945ed449bfe59d0166e0f6795880e8a21..0d8bd55e776f64d5e3f45c2f5d776366d98b9f86 100644 (file)
@@ -6,4 +6,4 @@ obj-y += cpuidle.o driver.o governor.o sysfs.o governors/
 obj-$(CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED) += coupled.o
 
 obj-$(CONFIG_CPU_IDLE_CALXEDA) += cpuidle-calxeda.o
-obj-$(CONFIG_CPU_IDLE_KIRKWOOD) += cpuidle-kirkwood.o
+obj-$(CONFIG_ARCH_KIRKWOOD) += cpuidle-kirkwood.o