Fix imx cpufreq driver as module
authorArnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
Wed, 1 Dec 2010 08:37:17 +0000 (09:37 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Tue, 14 Dec 2010 08:54:38 +0000 (09:54 +0100)
When building as module:
ERROR: "cpufreq_gov_performance" [arch/arm/plat-mxc/cpufreq.ko] undefined!
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

It's due to the driver using CPUFREQ_DEFAULT_GOVERNOR, even it should not
(see commit 8122c6cea033e8034e99d3b10a4e3f377ce23994 in Linus tree), so
remove it.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/cpufreq.c

index 039538e687939b2781eacb319326f84191b4a2c5..ce81481becf16e5addcc54a7ca3acdc6b78154af 100644 (file)
@@ -144,7 +144,6 @@ static int __init mxc_cpufreq_init(struct cpufreq_policy *policy)
        imx_freq_table[i].frequency = CPUFREQ_TABLE_END;
 
        policy->cur = clk_get_rate(cpu_clk) / 1000;
-       policy->governor = CPUFREQ_DEFAULT_GOVERNOR;
        policy->min = policy->cpuinfo.min_freq = cpu_freq_khz_min;
        policy->max = policy->cpuinfo.max_freq = cpu_freq_khz_max;
 
This page took 0.033505 seconds and 5 git commands to generate.