aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBob Liu <lliubbo@gmail.com>2012-05-17 02:21:22 -0400
committerBob Liu <lliubbo@gmail.com>2012-05-21 02:54:26 -0400
commit3a3cf0d7b8b0e32b5c1c4216520dfd59262742b9 (patch)
tree50bb12495a482a20e6ec787d07cfaf5e843a1e0b /arch
parent93f89519fd31c21e5d606faf4091f5905db38412 (diff)
blackfin: bf60x: fix compiling warning
Fix several compiling warning for bf60x. Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/blackfin/kernel/gptimers.c4
-rw-r--r--arch/blackfin/mach-bf609/boards/ezkit.c3
-rw-r--r--arch/blackfin/mach-common/cpufreq.c7
3 files changed, 11 insertions, 3 deletions
diff --git a/arch/blackfin/kernel/gptimers.c b/arch/blackfin/kernel/gptimers.c
index f7afe570f880..d776773d3869 100644
--- a/arch/blackfin/kernel/gptimers.c
+++ b/arch/blackfin/kernel/gptimers.c
@@ -332,13 +332,15 @@ static void _disable_gptimers(uint16_t mask)
332 332
333void disable_gptimers(uint16_t mask) 333void disable_gptimers(uint16_t mask)
334{ 334{
335#ifndef CONFIG_BF60x
335 int i; 336 int i;
336 _disable_gptimers(mask); 337 _disable_gptimers(mask);
337#ifndef CONFIG_BF60x
338 for (i = 0; i < MAX_BLACKFIN_GPTIMERS; ++i) 338 for (i = 0; i < MAX_BLACKFIN_GPTIMERS; ++i)
339 if (mask & (1 << i)) 339 if (mask & (1 << i))
340 bfin_write(&group_regs[BFIN_TIMER_OCTET(i)]->status, trun_mask[i]); 340 bfin_write(&group_regs[BFIN_TIMER_OCTET(i)]->status, trun_mask[i]);
341 SSYNC(); 341 SSYNC();
342#else
343 _disable_gptimers(mask);
342#endif 344#endif
343} 345}
344EXPORT_SYMBOL(disable_gptimers); 346EXPORT_SYMBOL(disable_gptimers);
diff --git a/arch/blackfin/mach-bf609/boards/ezkit.c b/arch/blackfin/mach-bf609/boards/ezkit.c
index 0c96754b4d39..1222cfb90d18 100644
--- a/arch/blackfin/mach-bf609/boards/ezkit.c
+++ b/arch/blackfin/mach-bf609/boards/ezkit.c
@@ -105,6 +105,8 @@ static struct platform_device bfin_rotary_device = {
105#if defined(CONFIG_STMMAC_ETH) || defined(CONFIG_STMMAC_ETH_MODULE) 105#if defined(CONFIG_STMMAC_ETH) || defined(CONFIG_STMMAC_ETH_MODULE)
106#include <linux/stmmac.h> 106#include <linux/stmmac.h>
107 107
108static unsigned short pins[] = P_RMII0;
109
108static struct stmmac_mdio_bus_data phy_private_data = { 110static struct stmmac_mdio_bus_data phy_private_data = {
109 .bus_id = 0, 111 .bus_id = 0,
110 .phy_mask = 1, 112 .phy_mask = 1,
@@ -1283,7 +1285,6 @@ static int __init ezkit_init(void)
1283 ARRAY_SIZE(bfin_i2c_board_info1)); 1285 ARRAY_SIZE(bfin_i2c_board_info1));
1284 1286
1285#if defined(CONFIG_STMMAC_ETH) || defined(CONFIG_STMMAC_ETH_MODULE) 1287#if defined(CONFIG_STMMAC_ETH) || defined(CONFIG_STMMAC_ETH_MODULE)
1286 unsigned short pins[] = P_RMII0;
1287 if (!peripheral_request_list(pins, "emac0")) 1288 if (!peripheral_request_list(pins, "emac0"))
1288 printk(KERN_ERR "%s(): request emac pins failed\n", __func__); 1289 printk(KERN_ERR "%s(): request emac pins failed\n", __func__);
1289#endif 1290#endif
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
114unsigned long cpu_set_cclk(int cpu, unsigned long new) 115unsigned 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
128static int bfin_target(struct cpufreq_policy *poli, 130static 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;