cpufreq: OMAP driver depends CPUfreq tables
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 15 Feb 2012 19:01:11 +0000 (11:01 -0800)
committerGrazvydas Ignotas <notasas@gmail.com>
Thu, 15 Mar 2012 21:39:37 +0000 (23:39 +0200)
The OMAP driver depends on CPUfreq table support for creating a table
of frequencies from the OPP layer.  Ensure that it's build to avoid
link-time errors.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
[khilman@ti.com: make user-selectable, but default y]
Signed-off-by: Kevin Hilman <khilman@ti.com>
drivers/cpufreq/Kconfig.arm
drivers/cpufreq/Makefile

index 72a0044..1c31dca 100644 (file)
@@ -2,6 +2,12 @@
 # ARM CPU Frequency scaling drivers
 #
 
+config ARM_OMAP2PLUS_CPUFREQ
+       bool "TI OMAP2+"
+       depends on ARCH_OMAP2PLUS
+       select CPU_FREQ_TABLE
+       default y
+
 config ARM_S3C64XX_CPUFREQ
        bool "Samsung S3C64XX"
        depends on CPU_S3C6410
index ce75fcb..805bfeb 100644 (file)
@@ -43,7 +43,7 @@ obj-$(CONFIG_UX500_SOC_DB8500)                += db8500-cpufreq.o
 obj-$(CONFIG_ARM_S3C64XX_CPUFREQ)      += s3c64xx-cpufreq.o
 obj-$(CONFIG_ARM_S5PV210_CPUFREQ)      += s5pv210-cpufreq.o
 obj-$(CONFIG_ARM_EXYNOS4210_CPUFREQ)   += exynos4210-cpufreq.o
-obj-$(CONFIG_ARCH_OMAP2PLUS)            += omap-cpufreq.o
+obj-$(CONFIG_ARM_OMAP2PLUS_CPUFREQ)     += omap-cpufreq.o
 
 ##################################################################################
 # PowerPC platform drivers