Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
0f73d1bb
cloud-kernel
项目概览
openanolis
/
cloud-kernel
接近 2 年 前同步成功
通知
170
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看板
提交
0f73d1bb
编写于
9月 01, 2008
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
pci_psycho: Use of_getintprop_default().
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
446139a8
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
3 addition
and
14 deletion
+3
-14
arch/sparc64/kernel/pci_psycho.c
arch/sparc64/kernel/pci_psycho.c
+3
-14
未找到文件。
arch/sparc64/kernel/pci_psycho.c
浏览文件 @
0f73d1bb
...
@@ -975,7 +975,6 @@ static void __init psycho_pbm_init(struct pci_controller_info *p,
...
@@ -975,7 +975,6 @@ static void __init psycho_pbm_init(struct pci_controller_info *p,
struct
of_device
*
op
,
int
is_pbm_a
)
struct
of_device
*
op
,
int
is_pbm_a
)
{
{
struct
device_node
*
dp
=
op
->
node
;
struct
device_node
*
dp
=
op
->
node
;
struct
property
*
prop
;
struct
pci_pbm_info
*
pbm
;
struct
pci_pbm_info
*
pbm
;
if
(
is_pbm_a
)
if
(
is_pbm_a
)
...
@@ -994,14 +993,8 @@ static void __init psycho_pbm_init(struct pci_controller_info *p,
...
@@ -994,14 +993,8 @@ static void __init psycho_pbm_init(struct pci_controller_info *p,
pbm
->
index
=
pci_num_pbms
++
;
pbm
->
index
=
pci_num_pbms
++
;
pbm
->
chip_type
=
PBM_CHIP_TYPE_PSYCHO
;
pbm
->
chip_type
=
PBM_CHIP_TYPE_PSYCHO
;
pbm
->
chip_version
=
0
;
pbm
->
chip_version
=
of_getintprop_default
(
dp
,
"version#"
,
0
);
prop
=
of_find_property
(
dp
,
"version#"
,
NULL
);
pbm
->
chip_revision
=
of_getintprop_default
(
dp
,
"module-revision#"
,
0
);
if
(
prop
)
pbm
->
chip_version
=
*
(
int
*
)
prop
->
value
;
pbm
->
chip_revision
=
0
;
prop
=
of_find_property
(
dp
,
"module-revision#"
,
NULL
);
if
(
prop
)
pbm
->
chip_revision
=
*
(
int
*
)
prop
->
value
;
pbm
->
parent
=
p
;
pbm
->
parent
=
p
;
pbm
->
prom_node
=
dp
;
pbm
->
prom_node
=
dp
;
...
@@ -1031,13 +1024,9 @@ static int __devinit psycho_probe(struct of_device *op,
...
@@ -1031,13 +1024,9 @@ static int __devinit psycho_probe(struct of_device *op,
struct
pci_pbm_info
*
pbm
;
struct
pci_pbm_info
*
pbm
;
struct
iommu
*
iommu
;
struct
iommu
*
iommu
;
int
is_pbm_a
,
err
;
int
is_pbm_a
,
err
;
const
u32
*
p32
;
u32
upa_portid
;
u32
upa_portid
;
upa_portid
=
0xff
;
upa_portid
=
of_getintprop_default
(
dp
,
"upa-portid"
,
0xff
);
p32
=
of_get_property
(
dp
,
"upa-portid"
,
NULL
);
if
(
p32
)
upa_portid
=
*
p32
;
for
(
pbm
=
pci_pbm_root
;
pbm
;
pbm
=
pbm
->
next
)
{
for
(
pbm
=
pci_pbm_root
;
pbm
;
pbm
=
pbm
->
next
)
{
struct
pci_controller_info
*
p
=
pbm
->
parent
;
struct
pci_controller_info
*
p
=
pbm
->
parent
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录