msm: power: Clean up compilation options for power drivers
Clean up and re-organize compilation options for power drivers
based on config definitions.
Change-Id: Ib7b3626db3e2f7325271648ab2fe8ce2f28eb2a0
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
diff --git a/arch/arm/mach-msm/Makefile b/arch/arm/mach-msm/Makefile
index e92e4de..b69f397 100644
--- a/arch/arm/mach-msm/Makefile
+++ b/arch/arm/mach-msm/Makefile
@@ -210,14 +210,7 @@
endif
obj-$(CONFIG_MSM_SYSMON_COMM) += sysmon.o
-ifdef CONFIG_CPU_IDLE
- obj-$(CONFIG_ARCH_APQ8064) += cpuidle.o
- obj-$(CONFIG_ARCH_MSM8960) += cpuidle.o
- obj-$(CONFIG_ARCH_MSM8X60) += cpuidle.o
- obj-$(CONFIG_ARCH_MSM9615) += cpuidle.o
- obj-$(CONFIG_ARCH_MSM9625) += cpuidle.o
- obj-$(CONFIG_ARCH_MSM8974) += cpuidle.o
-endif
+obj-$(CONFIG_CPU_IDLE) += cpuidle.o
ifdef CONFIG_MSM_CAMERA_V4L2
obj-$(CONFIG_ARCH_MSM8X60) += board-msm8x60-camera.o
@@ -323,18 +316,9 @@
obj-$(CONFIG_HTC_HEADSET) += htc_headset.o
obj-$(CONFIG_MSM_RMT_STORAGE_CLIENT) += rmt_storage_client.o
obj-$(CONFIG_MSM_SDIO_SMEM) += sdio_smem.o
-obj-$(CONFIG_MSM_RPM) += rpm.o
-ifdef CONFIG_MSM_RPM
- obj-$(CONFIG_ARCH_APQ8064) += rpm_resources.o
- obj-$(CONFIG_ARCH_MSM8960) += rpm_resources.o
- obj-$(CONFIG_ARCH_MSM8X60) += rpm_resources.o
- obj-$(CONFIG_ARCH_MSM9615) += rpm_resources.o
- obj-$(CONFIG_MSM_LPM_TEST) += test-lpm.o
-endif
-ifdef CONFIG_MSM_RPM_SMD
- obj-$(CONFIG_ARCH_MSM8974) += lpm_levels.o lpm_resources.o
- obj-$(CONFIG_ARCH_MSM9625) += lpm_levels.o lpm_resources.o
-endif
+obj-$(CONFIG_MSM_RPM) += rpm.o rpm_resources.o
+obj-$(CONFIG_MSM_LPM_TEST) += test-lpm.o
+obj-$(CONFIG_MSM_RPM_SMD) += rpm-smd.o lpm_levels.o lpm_resources.o
obj-$(CONFIG_MSM_MPM_OF) += mpm-of.o
obj-$(CONFIG_MSM_MPM) += mpm.o
obj-$(CONFIG_MSM_RPM_STATS_LOG) += rpm_stats.o rpm_master_stat.o