@@ -22,7 +22,6 @@ obj-$(CONFIG_CPU_S3C6410) += s3c6410.o
# PM
obj-$(CONFIG_PM) += pm.o irq-pm.o sleep.o
-obj-$(CONFIG_CPU_IDLE) += cpuidle.o
# DMA support
@@ -44,3 +44,10 @@ config ARM_AT91_CPUIDLE
depends on ARCH_AT91
help
Select this to enable cpuidle for AT91 processors
+
+config ARM_S3C64XX_CPUIDLE
+ bool "Cpu Idle Driver for the s3c64xx processors"
+ default y
+ depends on ARCH_S3C64XX
+ help
+ Select this to enable cpuidle for s3c64xx processors
@@ -13,3 +13,4 @@ obj-$(CONFIG_ARM_KIRKWOOD_CPUIDLE) += cpuidle-kirkwood.o
obj-$(CONFIG_ARM_ZYNQ_CPUIDLE) += cpuidle-zynq.o
obj-$(CONFIG_ARM_U8500_CPUIDLE) += cpuidle-ux500.o
obj-$(CONFIG_ARM_AT91_CPUIDLE) += cpuidle-at91.o
+obj-$(CONFIG_ARM_S3C64XX_CPUIDLE) += cpuidle-s3c64xx.o
There is no more dependency with the arch dependant code, thanks to the platform driver conversion. Move the driver to the drivers/cpuidle like the other drivers. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> --- arch/arm/mach-s3c64xx/Makefile | 1 - drivers/cpuidle/Kconfig.arm | 7 +++++++ drivers/cpuidle/Makefile | 1 + .../cpuidle.c => drivers/cpuidle/cpuidle-s3c64xx.c | 0 4 files changed, 8 insertions(+), 1 deletion(-) rename arch/arm/mach-s3c64xx/cpuidle.c => drivers/cpuidle/cpuidle-s3c64xx.c (100%) diff --git a/arch/arm/mach-s3c64xx/cpuidle.c b/drivers/cpuidle/cpuidle-s3c64xx.c similarity index 100% rename from arch/arm/mach-s3c64xx/cpuidle.c rename to drivers/cpuidle/cpuidle-s3c64xx.c