Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
3d6e4702
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 3 年多
通知
13
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
3d6e4702
编写于
7月 18, 2007
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[SPARC]: Make sure dev_archdata is filled in for all devices.
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
e865f3e6
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
30 addition
and
0 deletion
+30
-0
arch/sparc/kernel/ebus.c
arch/sparc/kernel/ebus.c
+5
-0
arch/sparc/kernel/of_device.c
arch/sparc/kernel/of_device.c
+5
-0
arch/sparc64/kernel/ebus.c
arch/sparc64/kernel/ebus.c
+5
-0
arch/sparc64/kernel/isa.c
arch/sparc64/kernel/isa.c
+5
-0
arch/sparc64/kernel/of_device.c
arch/sparc64/kernel/of_device.c
+5
-0
drivers/sbus/sbus.c
drivers/sbus/sbus.c
+5
-0
未找到文件。
arch/sparc/kernel/ebus.c
浏览文件 @
3d6e4702
...
...
@@ -148,6 +148,7 @@ void __init fill_ebus_device(struct device_node *dp, struct linux_ebus_device *d
{
const
struct
linux_prom_registers
*
regs
;
struct
linux_ebus_child
*
child
;
struct
dev_archdata
*
sd
;
const
int
*
irqs
;
int
i
,
n
,
len
;
unsigned
long
baseaddr
;
...
...
@@ -234,6 +235,10 @@ void __init fill_ebus_device(struct device_node *dp, struct linux_ebus_device *d
}
}
sd
=
&
dev
->
ofdev
.
dev
.
archdata
;
sd
->
prom_node
=
dp
;
sd
->
op
=
&
dev
->
ofdev
;
dev
->
ofdev
.
node
=
dp
;
dev
->
ofdev
.
dev
.
parent
=
&
dev
->
bus
->
ofdev
.
dev
;
dev
->
ofdev
.
dev
.
bus
=
&
ebus_bus_type
;
...
...
arch/sparc/kernel/of_device.c
浏览文件 @
3d6e4702
...
...
@@ -420,11 +420,16 @@ static struct of_device * __init scan_one_device(struct device_node *dp,
{
struct
of_device
*
op
=
kzalloc
(
sizeof
(
*
op
),
GFP_KERNEL
);
const
struct
linux_prom_irqs
*
intr
;
struct
dev_archdata
*
sd
;
int
len
,
i
;
if
(
!
op
)
return
NULL
;
sd
=
&
op
->
dev
.
archdata
;
sd
->
prom_node
=
dp
;
sd
->
op
=
op
;
op
->
node
=
dp
;
op
->
clock_freq
=
of_getintprop_default
(
dp
,
"clock-frequency"
,
...
...
arch/sparc64/kernel/ebus.c
浏览文件 @
3d6e4702
...
...
@@ -362,6 +362,7 @@ static int __init child_regs_nonstandard(struct linux_ebus_device *dev)
static
void
__init
fill_ebus_device
(
struct
device_node
*
dp
,
struct
linux_ebus_device
*
dev
)
{
struct
linux_ebus_child
*
child
;
struct
dev_archdata
*
sd
;
struct
of_device
*
op
;
int
i
,
len
;
...
...
@@ -387,6 +388,10 @@ static void __init fill_ebus_device(struct device_node *dp, struct linux_ebus_de
dev
->
irqs
[
i
]
=
op
->
irqs
[
i
];
}
sd
=
&
dev
->
ofdev
.
dev
.
archdata
;
sd
->
prom_node
=
dp
;
sd
->
op
=
&
dev
->
ofdev
;
dev
->
ofdev
.
node
=
dp
;
dev
->
ofdev
.
dev
.
parent
=
&
dev
->
bus
->
ofdev
.
dev
;
dev
->
ofdev
.
dev
.
bus
=
&
ebus_bus_type
;
...
...
arch/sparc64/kernel/isa.c
浏览文件 @
3d6e4702
...
...
@@ -79,6 +79,7 @@ static void __init isa_fill_devices(struct sparc_isa_bridge *isa_br)
while
(
dp
)
{
struct
sparc_isa_device
*
isa_dev
;
struct
dev_archdata
*
sd
;
isa_dev
=
kzalloc
(
sizeof
(
*
isa_dev
),
GFP_KERNEL
);
if
(
!
isa_dev
)
{
...
...
@@ -86,6 +87,10 @@ static void __init isa_fill_devices(struct sparc_isa_bridge *isa_br)
return
;
}
sd
=
&
isa_dev
->
ofdev
.
dev
.
archdata
;
sd
->
prom_node
=
dp
;
sd
->
op
=
&
isa_dev
->
ofdev
;
isa_dev
->
ofdev
.
node
=
dp
;
isa_dev
->
ofdev
.
dev
.
parent
=
&
isa_br
->
ofdev
.
dev
;
isa_dev
->
ofdev
.
dev
.
bus
=
&
isa_bus_type
;
...
...
arch/sparc64/kernel/of_device.c
浏览文件 @
3d6e4702
...
...
@@ -752,11 +752,16 @@ static struct of_device * __init scan_one_device(struct device_node *dp,
{
struct
of_device
*
op
=
kzalloc
(
sizeof
(
*
op
),
GFP_KERNEL
);
const
unsigned
int
*
irq
;
struct
dev_archdata
*
sd
;
int
len
,
i
;
if
(
!
op
)
return
NULL
;
sd
=
&
op
->
dev
.
archdata
;
sd
->
prom_node
=
dp
;
sd
->
op
=
op
;
op
->
node
=
dp
;
op
->
clock_freq
=
of_getintprop_default
(
dp
,
"clock-frequency"
,
...
...
drivers/sbus/sbus.c
浏览文件 @
3d6e4702
...
...
@@ -33,6 +33,7 @@ struct sbus_bus *sbus_root;
static
void
__init
fill_sbus_device
(
struct
device_node
*
dp
,
struct
sbus_dev
*
sdev
)
{
struct
dev_archdata
*
sd
;
unsigned
long
base
;
const
void
*
pval
;
int
len
,
err
;
...
...
@@ -67,6 +68,10 @@ static void __init fill_sbus_device(struct device_node *dp, struct sbus_dev *sde
sbus_fill_device_irq
(
sdev
);
sd
=
&
sdev
->
ofdev
.
dev
.
archdata
;
sd
->
prom_node
=
dp
;
sd
->
op
=
&
sdev
->
ofdev
;
sdev
->
ofdev
.
node
=
dp
;
if
(
sdev
->
parent
)
sdev
->
ofdev
.
dev
.
parent
=
&
sdev
->
parent
->
ofdev
.
dev
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录