Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
f98d67a0
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
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看板
提交
f98d67a0
编写于
3月 23, 2009
作者:
H
Hiroshi DOYU
提交者:
Tony Lindgren
3月 23, 2009
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
omap mailbox: fix empty struct device for omap1
Signed-off-by:
N
Hiroshi DOYU
<
Hiroshi.DOYU@nokia.com
>
上级
f48cca87
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
15 deletion
+16
-15
arch/arm/mach-omap1/devices.c
arch/arm/mach-omap1/devices.c
+1
-1
arch/arm/mach-omap1/mailbox.c
arch/arm/mach-omap1/mailbox.c
+15
-14
未找到文件。
arch/arm/mach-omap1/devices.c
浏览文件 @
f98d67a0
...
...
@@ -86,7 +86,7 @@ static struct resource mbox_resources[] = {
};
static
struct
platform_device
mbox_device
=
{
.
name
=
"mailbox"
,
.
name
=
"
omap1-
mailbox"
,
.
id
=
-
1
,
.
num_resources
=
ARRAY_SIZE
(
mbox_resources
),
.
resource
=
mbox_resources
,
...
...
arch/arm/mach-omap1/mailbox.c
浏览文件 @
f98d67a0
/*
* Mailbox reservation modules for DSP
*
* Copyright (C) 2006 Nokia Corporation
* Copyright (C) 2006
-2009
Nokia Corporation
* Written by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
*
* This file is subject to the terms and conditions of the GNU General Public
...
...
@@ -27,7 +27,7 @@
#define MAILBOX_DSP2ARM1_Flag 0x1c
#define MAILBOX_DSP2ARM2_Flag 0x20
unsigned
long
mbox_base
;
static
void
__iomem
*
mbox_base
;
struct
omap_mbox1_fifo
{
unsigned
long
cmd
;
...
...
@@ -40,14 +40,14 @@ struct omap_mbox1_priv {
struct
omap_mbox1_fifo
rx_fifo
;
};
static
inline
int
mbox_read_reg
(
unsigned
int
reg
)
static
inline
int
mbox_read_reg
(
size_t
ofs
)
{
return
__raw_readw
(
mbox_base
+
reg
);
return
__raw_readw
(
mbox_base
+
ofs
);
}
static
inline
void
mbox_write_reg
(
u
nsigned
int
val
,
unsigned
int
reg
)
static
inline
void
mbox_write_reg
(
u
32
val
,
size_t
ofs
)
{
__raw_writew
(
val
,
mbox_base
+
reg
);
__raw_writew
(
val
,
mbox_base
+
ofs
);
}
/* msg */
...
...
@@ -143,7 +143,7 @@ struct omap_mbox mbox_dsp_info = {
};
EXPORT_SYMBOL
(
mbox_dsp_info
);
static
int
__init
omap1_mbox_probe
(
struct
platform_device
*
pdev
)
static
int
__
dev
init
omap1_mbox_probe
(
struct
platform_device
*
pdev
)
{
struct
resource
*
res
;
int
ret
=
0
;
...
...
@@ -170,12 +170,10 @@ static int __init omap1_mbox_probe(struct platform_device *pdev)
}
mbox_dsp_info
.
irq
=
res
->
start
;
ret
=
omap_mbox_register
(
&
mbox_dsp_info
);
return
ret
;
return
omap_mbox_register
(
&
pdev
->
dev
,
&
mbox_dsp_info
);
}
static
int
omap1_mbox_remove
(
struct
platform_device
*
pdev
)
static
int
__devexit
omap1_mbox_remove
(
struct
platform_device
*
pdev
)
{
omap_mbox_unregister
(
&
mbox_dsp_info
);
...
...
@@ -184,9 +182,9 @@ static int omap1_mbox_remove(struct platform_device *pdev)
static
struct
platform_driver
omap1_mbox_driver
=
{
.
probe
=
omap1_mbox_probe
,
.
remove
=
omap1_mbox_remove
,
.
remove
=
__devexit_p
(
omap1_mbox_remove
)
,
.
driver
=
{
.
name
=
"mailbox"
,
.
name
=
"
omap1-
mailbox"
,
},
};
...
...
@@ -203,4 +201,7 @@ static void __exit omap1_mbox_exit(void)
module_init
(
omap1_mbox_init
);
module_exit
(
omap1_mbox_exit
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL v2"
);
MODULE_DESCRIPTION
(
"omap mailbox: omap1 architecture specific functions"
);
MODULE_AUTHOR
(
"Hiroshi DOYU"
<
Hiroshi
.
DOYU
@
nokia
.
com
>
);
MODULE_ALIAS
(
"platform:omap1-mailbox"
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录