cpufreq.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers:cpufreq:unicore32: fix typo issue for 'clk'
@ 2014-04-07 12:04 Chen Gang
  2014-04-07 12:08 ` Viresh Kumar
  2014-04-08  3:04 ` 回复: " 管雪涛
  0 siblings, 2 replies; 9+ messages in thread
From: Chen Gang @ 2014-04-07 12:04 UTC (permalink / raw)
  To: Guan Xuetao, rjw, viresh.kumar
  Cc: cpufreq, linux-pm, linux-kernel@vger.kernel.org

Need use 'clk' instead of 'mclk', which is the original removed local
variable.

The related original commit:

  "652ed95 cpufreq: introduce cpufreq_generic_get() routine"

The related error with allmodconfig for unicore32:

    CC      drivers/cpufreq/unicore2-cpufreq.o
  drivers/cpufreq/unicore2-cpufreq.c: In function ‘ucv2_target’:
  drivers/cpufreq/unicore2-cpufreq.c:48: error: ‘struct cpufreq_policy’ has no member named ‘mclk’
  make[2]: *** [drivers/cpufreq/unicore2-cpufreq.o] Error 1
  make[1]: *** [drivers/cpufreq] Error 2
  make: *** [drivers] Error 2


Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
---
 drivers/cpufreq/unicore2-cpufreq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cpufreq/unicore2-cpufreq.c b/drivers/cpufreq/unicore2-cpufreq.c
index 13be802..8d045af 100644
--- a/drivers/cpufreq/unicore2-cpufreq.c
+++ b/drivers/cpufreq/unicore2-cpufreq.c
@@ -45,7 +45,7 @@ static int ucv2_target(struct cpufreq_policy *policy,
 	freqs.new = target_freq;
 
 	cpufreq_freq_transition_begin(policy, &freqs);
-	ret = clk_set_rate(policy->mclk, target_freq * 1000);
+	ret = clk_set_rate(policy->clk, target_freq * 1000);
 	cpufreq_freq_transition_end(policy, &freqs, ret);
 
 	return ret;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-04-08 11:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-07 12:04 [PATCH] drivers:cpufreq:unicore32: fix typo issue for 'clk' Chen Gang
2014-04-07 12:08 ` Viresh Kumar
2014-04-08  1:01   ` Chen Gang
2014-04-08  4:08     ` Viresh Kumar
2014-04-08  4:39       ` Chen Gang
2014-04-08  5:29         ` Viresh Kumar
2014-04-08  6:51           ` Chen Gang
2014-04-08 11:11       ` Rafael J. Wysocki
2014-04-08  3:04 ` 回复: " 管雪涛

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).