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)
committerKevin Hilman <khilman@ti.com>
Wed, 22 Feb 2012 00:32:24 +0000 (16:32 -0800)
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 e0664fed018afc28ef8fd54c49630562a052366d..82f1aa9c3b6f3a58f578e6f46b93ff307adc3be5 100644 (file)
@@ -2,6 +2,11 @@
 # ARM CPU Frequency scaling drivers
 #
 
+config ARM_OMAP2PLUS_CPUFREQ
+       bool "TI OMAP2+"
+       default ARCH_OMAP2PLUS
+       select CPU_FREQ_TABLE
+
 config ARM_S3C64XX_CPUFREQ
        bool "Samsung S3C64XX"
        depends on CPU_S3C6410
index ac000fa76bbb6b2fd068df07c1edf650798be88c..fda94c74eab0e2285033c292401fc52ba2b2cbee 100644 (file)
@@ -44,7 +44,7 @@ obj-$(CONFIG_ARM_S3C64XX_CPUFREQ)     += s3c64xx-cpufreq.o
 obj-$(CONFIG_ARM_S5PV210_CPUFREQ)      += s5pv210-cpufreq.o
 obj-$(CONFIG_ARM_EXYNOS_CPUFREQ)       += exynos-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