diff options
author | Bob Liu <lliubbo@gmail.com> | 2012-05-17 02:21:22 -0400 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-05-21 02:54:26 -0400 |
commit | 3a3cf0d7b8b0e32b5c1c4216520dfd59262742b9 (patch) | |
tree | 50bb12495a482a20e6ec787d07cfaf5e843a1e0b /arch/blackfin/mach-common/cpufreq.c | |
parent | 93f89519fd31c21e5d606faf4091f5905db38412 (diff) |
blackfin: bf60x: fix compiling warning
Fix several compiling warning for bf60x.
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/mach-common/cpufreq.c')
-rw-r--r-- | arch/blackfin/mach-common/cpufreq.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/blackfin/mach-common/cpufreq.c b/arch/blackfin/mach-common/cpufreq.c index 3b688797c78f..6e87dc13f6bf 100644 --- a/arch/blackfin/mach-common/cpufreq.c +++ b/arch/blackfin/mach-common/cpufreq.c | |||
@@ -111,6 +111,7 @@ static unsigned int bfin_getfreq_khz(unsigned int cpu) | |||
111 | return get_cclk() / 1000; | 111 | return get_cclk() / 1000; |
112 | } | 112 | } |
113 | 113 | ||
114 | #ifdef CONFIG_BF60x | ||
114 | unsigned long cpu_set_cclk(int cpu, unsigned long new) | 115 | unsigned long cpu_set_cclk(int cpu, unsigned long new) |
115 | { | 116 | { |
116 | struct clk *clk; | 117 | struct clk *clk; |
@@ -124,11 +125,15 @@ unsigned long cpu_set_cclk(int cpu, unsigned long new) | |||
124 | clk_put(clk); | 125 | clk_put(clk); |
125 | return ret; | 126 | return ret; |
126 | } | 127 | } |
128 | #endif | ||
127 | 129 | ||
128 | static int bfin_target(struct cpufreq_policy *poli, | 130 | static int bfin_target(struct cpufreq_policy *poli, |
129 | unsigned int target_freq, unsigned int relation) | 131 | unsigned int target_freq, unsigned int relation) |
130 | { | 132 | { |
131 | unsigned int index, plldiv, cpu; | 133 | #ifndef CONFIG_BF60x |
134 | unsigned int plldiv; | ||
135 | #endif | ||
136 | unsigned int index, cpu; | ||
132 | unsigned long flags, cclk_hz; | 137 | unsigned long flags, cclk_hz; |
133 | struct cpufreq_freqs freqs; | 138 | struct cpufreq_freqs freqs; |
134 | static unsigned long lpj_ref; | 139 | static unsigned long lpj_ref; |