summaryrefslogtreecommitdiff
path: root/drivers/base/power/opp/Makefile
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2016-05-05 10:50:33 (GMT)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-05-06 11:22:49 (GMT)
commitf47b72a15a9679dd4dc1af681d4d2f1ca2815552 (patch)
tree1e8f306d2aff410c329024c8691a49bac57f716d /drivers/base/power/opp/Makefile
parent411466c5081d2f649b3583cae0f6c9ad5edec636 (diff)
downloadlinux-f47b72a15a9679dd4dc1af681d4d2f1ca2815552.tar.xz
PM / OPP: Move CONFIG_OF dependent code in a separate file
Recently, a few issues were noticed in the code where CONFIG_OF wasn't consistently used for many routines. The core file is big enough now and ifdef hackery makes it less readable. Move OF-specific code to another file and compile that only if CONFIG_OF is enabled. Compile-tested: - For ARM (exynos) with CONFIG_OF enabled - For X86 with CONFIG_OF disabled (have to enable CONFIG_PM_OPP separately) No functional changes. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Tested-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/power/opp/Makefile')
-rw-r--r--drivers/base/power/opp/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/power/opp/Makefile b/drivers/base/power/opp/Makefile
index 19837ef..e70ceb4 100644
--- a/drivers/base/power/opp/Makefile
+++ b/drivers/base/power/opp/Makefile
@@ -1,3 +1,4 @@
ccflags-$(CONFIG_DEBUG_DRIVER) := -DDEBUG
obj-y += core.o cpu.o
+obj-$(CONFIG_OF) += of.o
obj-$(CONFIG_DEBUG_FS) += debugfs.o