Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
ff6c7341
cloud-kernel
项目概览
openanolis
/
cloud-kernel
接近 2 年 前同步成功
通知
169
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ff6c7341
编写于
5月 25, 2010
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
n2_crypto: Fix build after of_device/of_platform_driver changes.
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
b1cdc467
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
10 deletion
+16
-10
drivers/crypto/n2_core.c
drivers/crypto/n2_core.c
+16
-10
未找到文件。
drivers/crypto/n2_core.c
浏览文件 @
ff6c7341
...
...
@@ -1398,7 +1398,7 @@ static int find_devino_index(struct of_device *dev, struct spu_mdesc_info *ip,
intr
=
ip
->
ino_table
[
i
].
intr
;
dev_intrs
=
of_get_property
(
dev
->
node
,
"interrupts"
,
NULL
);
dev_intrs
=
of_get_property
(
dev
->
dev
.
of_
node
,
"interrupts"
,
NULL
);
if
(
!
dev_intrs
)
return
-
ENODEV
;
...
...
@@ -1574,7 +1574,7 @@ static int spu_mdesc_walk_arcs(struct mdesc_handle *mdesc,
id
=
mdesc_get_property
(
mdesc
,
tgt
,
"id"
,
NULL
);
if
(
table
[
*
id
]
!=
NULL
)
{
dev_err
(
&
dev
->
dev
,
"%s: SPU cpu slot already set.
\n
"
,
dev
->
node
->
full_name
);
dev
->
dev
.
of_
node
->
full_name
);
return
-
EINVAL
;
}
cpu_set
(
*
id
,
p
->
sharing
);
...
...
@@ -1595,7 +1595,7 @@ static int handle_exec_unit(struct spu_mdesc_info *ip, struct list_head *list,
p
=
kzalloc
(
sizeof
(
struct
spu_queue
),
GFP_KERNEL
);
if
(
!
p
)
{
dev_err
(
&
dev
->
dev
,
"%s: Could not allocate SPU queue.
\n
"
,
dev
->
node
->
full_name
);
dev
->
dev
.
of_
node
->
full_name
);
return
-
ENOMEM
;
}
...
...
@@ -1684,7 +1684,7 @@ static int __devinit grab_mdesc_irq_props(struct mdesc_handle *mdesc,
const
unsigned
int
*
reg
;
u64
node
;
reg
=
of_get_property
(
dev
->
node
,
"reg"
,
NULL
);
reg
=
of_get_property
(
dev
->
dev
.
of_
node
,
"reg"
,
NULL
);
if
(
!
reg
)
return
-
ENODEV
;
...
...
@@ -1836,7 +1836,7 @@ static int __devinit n2_crypto_probe(struct of_device *dev,
n2_spu_driver_version
();
full_name
=
dev
->
node
->
full_name
;
full_name
=
dev
->
dev
.
of_
node
->
full_name
;
pr_info
(
"Found N2CP at %s
\n
"
,
full_name
);
np
=
alloc_n2cp
();
...
...
@@ -1948,7 +1948,7 @@ static int __devinit n2_mau_probe(struct of_device *dev,
n2_spu_driver_version
();
full_name
=
dev
->
node
->
full_name
;
full_name
=
dev
->
dev
.
of_
node
->
full_name
;
pr_info
(
"Found NCP at %s
\n
"
,
full_name
);
mp
=
alloc_ncp
();
...
...
@@ -2034,8 +2034,11 @@ static struct of_device_id n2_crypto_match[] = {
MODULE_DEVICE_TABLE
(
of
,
n2_crypto_match
);
static
struct
of_platform_driver
n2_crypto_driver
=
{
.
name
=
"n2cp"
,
.
match_table
=
n2_crypto_match
,
.
driver
=
{
.
name
=
"n2cp"
,
.
owner
=
THIS_MODULE
,
.
of_match_table
=
n2_crypto_match
,
},
.
probe
=
n2_crypto_probe
,
.
remove
=
__devexit_p
(
n2_crypto_remove
),
};
...
...
@@ -2055,8 +2058,11 @@ static struct of_device_id n2_mau_match[] = {
MODULE_DEVICE_TABLE
(
of
,
n2_mau_match
);
static
struct
of_platform_driver
n2_mau_driver
=
{
.
name
=
"ncp"
,
.
match_table
=
n2_mau_match
,
.
driver
=
{
.
name
=
"ncp"
,
.
owner
=
THIS_MODULE
,
.
of_match_table
=
n2_mau_match
,
},
.
probe
=
n2_mau_probe
,
.
remove
=
__devexit_p
(
n2_mau_remove
),
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录