[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <620835913.18252.1396926268726.JavaMail.root@bj-mail03.pku.edu.cn>
Date: Tue, 8 Apr 2014 11:04:28 +0800 (CST)
From: 管雪涛 <gxt@....edu.cn>
To: Chen Gang <gang.chen.5i5j@...il.com>
Cc: Guan Xuetao <gxt@...c.pku.edu.cn>, rjw@...ysocki.net,
viresh kumar <viresh.kumar@...aro.org>,
cpufreq@...r.kernel.org, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: 回复: [PATCH] drivers:cpufreq:unicore32: fix typo issue for 'clk'
Thanks,
Acked-by: Xuetao Guan <gxt@...c.pku.edu.cn>
----- Chen Gang <gang.chen.5i5j@...il.com> 写道:
> 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@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists