drivers:cpufreq:unicore32: fix typo issue for 'clk'
Subsystems (2)
PATCH 1/1 drivers:cpufreq:unicore32: fix typo issue for 'clk'
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
--- drivers/cpufreq/unicore2-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/unicore2-cpufreq.c +1 -1
@@ -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;
Signature · 1 line
1.7.9.5
Quoted 17 lines · Chen Gang
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: 'structcpufreq_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
Quoted 4 lines
Signed-off-by Chen Gang <[email protected]>--- drivers/cpufreq/unicore2-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Stupid mistake.
@stable: please apply this for v3.14, as it broke in that cycle..
Quoted 18 lines · Viresh Kumar
Quoted 17 lines · Chen Gang
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: 'structcpufreq_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
Quoted 7 lines
Quoted 4 lines
Signed-off-by Chen Gang <[email protected]>--- drivers/cpufreq/unicore2-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Stupid mistake.
It is very easy to lead other members to make mistakes, or let ourself make mistakes.
Quoted 4 lines
Acked-by Viresh Kumar <[email protected]>@stable: please apply this for v3.14, as it broke in that cycle..
Thank you.
Thanks.
Signature · 3 lines
Chen Gang Open, share, and attitude like air, water, and life which God blessed
Viresh Kumar
maintainerQuoted 1 line · Chen Gang
Quoted 1 line
@stable: please apply this for v3.14, as it broke in that cycle..
This wouldn't work..
Quoted 1 line
Thank you.
Can you please send it again for stable as well? Add my Ack in the patch and follow what's mentioned here:
Documentation/stable_kernel_rules.txt
Quoted 12 lines · Viresh Kumar
Quoted 1 line · Chen Gang
Quoted 1 line
@stable: please apply this for v3.14, as it broke in that cycle..
This wouldn't work..
Quoted 1 line
Thank you.
Can you please send it again for stable as well? Add my Ack in the patch and follow what's mentioned here:
Documentation/stable_kernel_rules.txt
OK, I will/should try within this week, thanks.
Thanks.
Signature · 3 lines
Chen Gang Open, share, and attitude like air, water, and life which God blessed
Quoted 1 line · Chen Gang
OK, I will/should try within this week, thanks.
Rafael has already applied this patch and has mentioned stable in 'Cc:' field. And it looks it will be applied automatically and you don't need to do anything now :)
commit b4ddad95020e65cfbbf9aee63d3bcdf682794ade
Author: Chen Gang <[email protected]> Date: Mon Apr 7 20:04:21 2014 +0800
cpufreq: unicore32: fix typo issue for 'clk'
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: 'structcpufreq_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
Quoted 7 lines · Viresh Kumar
Quoted 1 line · Chen Gang
OK, I will/should try within this week, thanks.
Rafael has already applied this patch and has mentioned stable in 'Cc:' field. And it looks it will be applied automatically and you don't need to do anything now :)
OK, thank all of you!!
:-)
Quoted 30 lines
commit
b4ddad95020e65cfbbf9aee63d3bcdf682794adeAuthor: Chen Gang <[email protected]> Date: Mon Apr 7 20:04:21 2014 +0800cpufreq: unicore32: fix typo issue for 'clk'
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: 'structcpufreq_policy' has no member named 'mclk'
make[2]: *** [drivers/cpufreq/unicore2-cpufreq.o] Error 1 make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2Fixes 652ed95d5fa6 (cpufreq: introduce cpufreq_generic_get() routine)Signed-off-by Chen Gang <[email protected]>Acked-by Viresh Kumar <[email protected]>Cc 3.14+ <[email protected]> # 3.14+Signed-off-by Rafael J. Wysocki <[email protected]>
Signature · 3 lines
Chen Gang Open, share, and attitude like air, water, and life which God blessed
Quoted 8 lines · Viresh Kumar
Quoted 1 line · Chen Gang
Quoted 1 line
@stable: please apply this for v3.14, as it broke in that cycle..
This wouldn't work..
Quoted 1 line
Thank you.
Can you please send it again for stable as well?
I have labeled it for -stable and it doesn't work like that. -stable won't take any patches you send them before the commits in question are in the Linus' tree anyway. And you need to provide the original commit hashes then.
Thanks!
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.
Thanks,
Quoted 37 lines · ----- Chen Gang
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 2Signed-off-by Chen Gang <[email protected]>--- drivers/cpufreq/unicore2-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cpufreq/unicore2-cpufreq.c +1
-1@@ -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;Signature · 1 line
1.7.9.5