Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
3a3cf0d7
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
14
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3a3cf0d7
编写于
5月 17, 2012
作者:
B
Bob Liu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
blackfin: bf60x: fix compiling warning
Fix several compiling warning for bf60x. Signed-off-by:
N
Bob Liu
<
lliubbo@gmail.com
>
上级
93f89519
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
3 deletion
+11
-3
arch/blackfin/kernel/gptimers.c
arch/blackfin/kernel/gptimers.c
+3
-1
arch/blackfin/mach-bf609/boards/ezkit.c
arch/blackfin/mach-bf609/boards/ezkit.c
+2
-1
arch/blackfin/mach-common/cpufreq.c
arch/blackfin/mach-common/cpufreq.c
+6
-1
未找到文件。
arch/blackfin/kernel/gptimers.c
浏览文件 @
3a3cf0d7
...
@@ -332,13 +332,15 @@ static void _disable_gptimers(uint16_t mask)
...
@@ -332,13 +332,15 @@ static void _disable_gptimers(uint16_t mask)
void
disable_gptimers
(
uint16_t
mask
)
void
disable_gptimers
(
uint16_t
mask
)
{
{
#ifndef CONFIG_BF60x
int
i
;
int
i
;
_disable_gptimers
(
mask
);
_disable_gptimers
(
mask
);
#ifndef CONFIG_BF60x
for
(
i
=
0
;
i
<
MAX_BLACKFIN_GPTIMERS
;
++
i
)
for
(
i
=
0
;
i
<
MAX_BLACKFIN_GPTIMERS
;
++
i
)
if
(
mask
&
(
1
<<
i
))
if
(
mask
&
(
1
<<
i
))
bfin_write
(
&
group_regs
[
BFIN_TIMER_OCTET
(
i
)]
->
status
,
trun_mask
[
i
]);
bfin_write
(
&
group_regs
[
BFIN_TIMER_OCTET
(
i
)]
->
status
,
trun_mask
[
i
]);
SSYNC
();
SSYNC
();
#else
_disable_gptimers
(
mask
);
#endif
#endif
}
}
EXPORT_SYMBOL
(
disable_gptimers
);
EXPORT_SYMBOL
(
disable_gptimers
);
...
...
arch/blackfin/mach-bf609/boards/ezkit.c
浏览文件 @
3a3cf0d7
...
@@ -105,6 +105,8 @@ static struct platform_device bfin_rotary_device = {
...
@@ -105,6 +105,8 @@ static struct platform_device bfin_rotary_device = {
#if defined(CONFIG_STMMAC_ETH) || defined(CONFIG_STMMAC_ETH_MODULE)
#if defined(CONFIG_STMMAC_ETH) || defined(CONFIG_STMMAC_ETH_MODULE)
#include <linux/stmmac.h>
#include <linux/stmmac.h>
static
unsigned
short
pins
[]
=
P_RMII0
;
static
struct
stmmac_mdio_bus_data
phy_private_data
=
{
static
struct
stmmac_mdio_bus_data
phy_private_data
=
{
.
bus_id
=
0
,
.
bus_id
=
0
,
.
phy_mask
=
1
,
.
phy_mask
=
1
,
...
@@ -1283,7 +1285,6 @@ static int __init ezkit_init(void)
...
@@ -1283,7 +1285,6 @@ static int __init ezkit_init(void)
ARRAY_SIZE
(
bfin_i2c_board_info1
));
ARRAY_SIZE
(
bfin_i2c_board_info1
));
#if defined(CONFIG_STMMAC_ETH) || defined(CONFIG_STMMAC_ETH_MODULE)
#if defined(CONFIG_STMMAC_ETH) || defined(CONFIG_STMMAC_ETH_MODULE)
unsigned
short
pins
[]
=
P_RMII0
;
if
(
!
peripheral_request_list
(
pins
,
"emac0"
))
if
(
!
peripheral_request_list
(
pins
,
"emac0"
))
printk
(
KERN_ERR
"%s(): request emac pins failed
\n
"
,
__func__
);
printk
(
KERN_ERR
"%s(): request emac pins failed
\n
"
,
__func__
);
#endif
#endif
...
...
arch/blackfin/mach-common/cpufreq.c
浏览文件 @
3a3cf0d7
...
@@ -111,6 +111,7 @@ static unsigned int bfin_getfreq_khz(unsigned int cpu)
...
@@ -111,6 +111,7 @@ static unsigned int bfin_getfreq_khz(unsigned int cpu)
return
get_cclk
()
/
1000
;
return
get_cclk
()
/
1000
;
}
}
#ifdef CONFIG_BF60x
unsigned
long
cpu_set_cclk
(
int
cpu
,
unsigned
long
new
)
unsigned
long
cpu_set_cclk
(
int
cpu
,
unsigned
long
new
)
{
{
struct
clk
*
clk
;
struct
clk
*
clk
;
...
@@ -124,11 +125,15 @@ unsigned long cpu_set_cclk(int cpu, unsigned long new)
...
@@ -124,11 +125,15 @@ unsigned long cpu_set_cclk(int cpu, unsigned long new)
clk_put
(
clk
);
clk_put
(
clk
);
return
ret
;
return
ret
;
}
}
#endif
static
int
bfin_target
(
struct
cpufreq_policy
*
poli
,
static
int
bfin_target
(
struct
cpufreq_policy
*
poli
,
unsigned
int
target_freq
,
unsigned
int
relation
)
unsigned
int
target_freq
,
unsigned
int
relation
)
{
{
unsigned
int
index
,
plldiv
,
cpu
;
#ifndef CONFIG_BF60x
unsigned
int
plldiv
;
#endif
unsigned
int
index
,
cpu
;
unsigned
long
flags
,
cclk_hz
;
unsigned
long
flags
,
cclk_hz
;
struct
cpufreq_freqs
freqs
;
struct
cpufreq_freqs
freqs
;
static
unsigned
long
lpj_ref
;
static
unsigned
long
lpj_ref
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录