Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xiphi1978
linux
提交
c6e5f661
L
linux
项目概览
xiphi1978
/
linux
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c6e5f661
编写于
8月 27, 2008
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sparc: Kill OBP property members of sbus_dev and sbus_bus
Unused. Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
9b9644c6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
1 addition
and
30 deletion
+1
-30
arch/sparc/include/asm/sbus_32.h
arch/sparc/include/asm/sbus_32.h
+0
-6
arch/sparc/include/asm/sbus_64.h
arch/sparc/include/asm/sbus_64.h
+0
-7
drivers/sbus/sbus.c
drivers/sbus/sbus.c
+1
-17
未找到文件。
arch/sparc/include/asm/sbus_32.h
浏览文件 @
c6e5f661
...
@@ -30,9 +30,6 @@ struct sbus_dev {
...
@@ -30,9 +30,6 @@ struct sbus_dev {
struct
sbus_dev
*
next
;
struct
sbus_dev
*
next
;
struct
sbus_dev
*
child
;
struct
sbus_dev
*
child
;
struct
sbus_dev
*
parent
;
struct
sbus_dev
*
parent
;
int
prom_node
;
char
prom_name
[
64
];
int
slot
;
};
};
#define to_sbus_device(d) container_of(d, struct sbus_dev, ofdev.dev)
#define to_sbus_device(d) container_of(d, struct sbus_dev, ofdev.dev)
...
@@ -41,9 +38,6 @@ struct sbus_bus {
...
@@ -41,9 +38,6 @@ struct sbus_bus {
struct
of_device
ofdev
;
struct
of_device
ofdev
;
struct
sbus_dev
*
devices
;
/* Link to devices on this SBus */
struct
sbus_dev
*
devices
;
/* Link to devices on this SBus */
struct
sbus_bus
*
next
;
/* next SBus, if more than one SBus */
struct
sbus_bus
*
next
;
/* next SBus, if more than one SBus */
int
prom_node
;
/* PROM device tree node for this SBus */
char
prom_name
[
64
];
/* Usually "sbus" or "sbi" */
int
clock_freq
;
};
};
#define to_sbus(d) container_of(d, struct sbus_bus, ofdev.dev)
#define to_sbus(d) container_of(d, struct sbus_bus, ofdev.dev)
...
...
arch/sparc/include/asm/sbus_64.h
浏览文件 @
c6e5f661
...
@@ -30,9 +30,6 @@ struct sbus_dev {
...
@@ -30,9 +30,6 @@ struct sbus_dev {
struct
sbus_dev
*
next
;
struct
sbus_dev
*
next
;
struct
sbus_dev
*
child
;
struct
sbus_dev
*
child
;
struct
sbus_dev
*
parent
;
struct
sbus_dev
*
parent
;
int
prom_node
;
char
prom_name
[
64
];
int
slot
;
};
};
#define to_sbus_device(d) container_of(d, struct sbus_dev, ofdev.dev)
#define to_sbus_device(d) container_of(d, struct sbus_dev, ofdev.dev)
...
@@ -41,10 +38,6 @@ struct sbus_bus {
...
@@ -41,10 +38,6 @@ struct sbus_bus {
struct
of_device
ofdev
;
struct
of_device
ofdev
;
struct
sbus_dev
*
devices
;
/* Tree of SBUS devices */
struct
sbus_dev
*
devices
;
/* Tree of SBUS devices */
struct
sbus_bus
*
next
;
/* Next SBUS in system */
struct
sbus_bus
*
next
;
/* Next SBUS in system */
int
prom_node
;
/* OBP node of SBUS */
char
prom_name
[
64
];
/* Usually "sbus" or "sbi" */
int
clock_freq
;
int
portid
;
};
};
#define to_sbus(d) container_of(d, struct sbus_bus, ofdev.dev)
#define to_sbus(d) container_of(d, struct sbus_bus, ofdev.dev)
...
...
drivers/sbus/sbus.c
浏览文件 @
c6e5f661
...
@@ -51,9 +51,6 @@ static void __init fill_sbus_device(struct device_node *dp, struct sbus_dev *sde
...
@@ -51,9 +51,6 @@ static void __init fill_sbus_device(struct device_node *dp, struct sbus_dev *sde
struct
dev_archdata
*
sd
;
struct
dev_archdata
*
sd
;
int
err
;
int
err
;
sdev
->
prom_node
=
dp
->
node
;
strcpy
(
sdev
->
prom_name
,
dp
->
name
);
sd
=
&
sdev
->
ofdev
.
dev
.
archdata
;
sd
=
&
sdev
->
ofdev
.
dev
.
archdata
;
sd
->
prom_node
=
dp
;
sd
->
prom_node
=
dp
;
sd
->
op
=
&
sdev
->
ofdev
;
sd
->
op
=
&
sdev
->
ofdev
;
...
@@ -107,30 +104,17 @@ static void __init walk_children(struct device_node *dp, struct sbus_dev *parent
...
@@ -107,30 +104,17 @@ static void __init walk_children(struct device_node *dp, struct sbus_dev *parent
static
void
__init
build_one_sbus
(
struct
device_node
*
dp
,
int
num_sbus
)
static
void
__init
build_one_sbus
(
struct
device_node
*
dp
,
int
num_sbus
)
{
{
struct
sbus_bus
*
sbus
;
unsigned
int
sbus_clock
;
struct
device_node
*
dev_dp
;
struct
device_node
*
dev_dp
;
struct
sbus_bus
*
sbus
;
sbus
=
kzalloc
(
sizeof
(
struct
sbus_bus
),
GFP_ATOMIC
);
sbus
=
kzalloc
(
sizeof
(
struct
sbus_bus
),
GFP_ATOMIC
);
if
(
!
sbus
)
if
(
!
sbus
)
return
;
return
;
sbus
->
prom_node
=
dp
->
node
;
sbus_setup_iommu
(
sbus
,
dp
);
sbus_setup_iommu
(
sbus
,
dp
);
printk
(
"sbus%d: "
,
num_sbus
);
printk
(
"sbus%d: "
,
num_sbus
);
sbus_clock
=
of_getintprop_default
(
dp
,
"clock-frequency"
,
(
25
*
1000
*
1000
));
sbus
->
clock_freq
=
sbus_clock
;
printk
(
"Clock %d.%d MHz
\n
"
,
(
int
)
((
sbus_clock
/
1000
)
/
1000
),
(
int
)
(((
sbus_clock
/
1000
)
%
1000
!=
0
)
?
(((
sbus_clock
/
1000
)
%
1000
)
+
1000
)
:
0
));
strcpy
(
sbus
->
prom_name
,
dp
->
name
);
sbus
->
ofdev
.
node
=
dp
;
sbus
->
ofdev
.
node
=
dp
;
sbus
->
ofdev
.
dev
.
parent
=
NULL
;
sbus
->
ofdev
.
dev
.
parent
=
NULL
;
sbus
->
ofdev
.
dev
.
bus
=
&
sbus_bus_type
;
sbus
->
ofdev
.
dev
.
bus
=
&
sbus_bus_type
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录