Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
031d3076
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
031d3076
编写于
6月 19, 2013
作者:
S
Samuel Ortiz
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-mfd-next' of
git://git.linaro.org/people/ljones/linux-3.0-ux500
Signed-off-by:
N
Samuel Ortiz
<
sameo@linux.intel.com
>
上级
8eb12b98
3f9850f2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
42 deletion
+12
-42
drivers/mfd/davinci_voicecodec.c
drivers/mfd/davinci_voicecodec.c
+10
-38
drivers/mfd/htc-egpio.c
drivers/mfd/htc-egpio.c
+2
-2
include/linux/mfd/davinci_voicecodec.h
include/linux/mfd/davinci_voicecodec.h
+0
-2
未找到文件。
drivers/mfd/davinci_voicecodec.c
浏览文件 @
031d3076
...
...
@@ -46,7 +46,7 @@ void davinci_vc_write(struct davinci_vc *davinci_vc,
static
int
__init
davinci_vc_probe
(
struct
platform_device
*
pdev
)
{
struct
davinci_vc
*
davinci_vc
;
struct
resource
*
res
,
*
mem
;
struct
resource
*
res
;
struct
mfd_cell
*
cell
=
NULL
;
int
ret
;
...
...
@@ -58,7 +58,7 @@ static int __init davinci_vc_probe(struct platform_device *pdev)
return
-
ENOMEM
;
}
davinci_vc
->
clk
=
clk_get
(
&
pdev
->
dev
,
NULL
);
davinci_vc
->
clk
=
devm_
clk_get
(
&
pdev
->
dev
,
NULL
);
if
(
IS_ERR
(
davinci_vc
->
clk
))
{
dev_dbg
(
&
pdev
->
dev
,
"could not get the clock for voice codec
\n
"
);
...
...
@@ -67,35 +67,18 @@ static int __init davinci_vc_probe(struct platform_device *pdev)
clk_enable
(
davinci_vc
->
clk
);
res
=
platform_get_resource
(
pdev
,
IORESOURCE_MEM
,
0
);
if
(
!
res
)
{
dev_err
(
&
pdev
->
dev
,
"no mem resource
\n
"
);
ret
=
-
ENODEV
;
goto
fail2
;
}
davinci_vc
->
pbase
=
res
->
start
;
davinci_vc
->
base_size
=
resource_size
(
res
);
mem
=
request_mem_region
(
davinci_vc
->
pbase
,
davinci_vc
->
base_size
,
pdev
->
name
);
if
(
!
mem
)
{
dev_err
(
&
pdev
->
dev
,
"VCIF region already claimed
\n
"
);
ret
=
-
EBUSY
;
goto
fail2
;
}
davinci_vc
->
base
=
ioremap
(
davinci_vc
->
pbase
,
davinci_vc
->
base_size
);
if
(
!
davinci_vc
->
base
)
{
dev_err
(
&
pdev
->
dev
,
"can't ioremap mem resource.
\n
"
);
ret
=
-
ENOMEM
;
goto
fail3
;
davinci_vc
->
base
=
devm_ioremap_resource
(
&
pdev
->
dev
,
res
);
if
(
IS_ERR
(
davinci_vc
->
base
))
{
ret
=
PTR_ERR
(
davinci_vc
->
base
);
goto
fail
;
}
res
=
platform_get_resource
(
pdev
,
IORESOURCE_DMA
,
0
);
if
(
!
res
)
{
dev_err
(
&
pdev
->
dev
,
"no DMA resource
\n
"
);
ret
=
-
ENXIO
;
goto
fail
4
;
goto
fail
;
}
davinci_vc
->
davinci_vcif
.
dma_tx_channel
=
res
->
start
;
...
...
@@ -106,7 +89,7 @@ static int __init davinci_vc_probe(struct platform_device *pdev)
if
(
!
res
)
{
dev_err
(
&
pdev
->
dev
,
"no DMA resource
\n
"
);
ret
=
-
ENXIO
;
goto
fail
4
;
goto
fail
;
}
davinci_vc
->
davinci_vcif
.
dma_rx_channel
=
res
->
start
;
...
...
@@ -132,19 +115,13 @@ static int __init davinci_vc_probe(struct platform_device *pdev)
DAVINCI_VC_CELLS
,
NULL
,
0
,
NULL
);
if
(
ret
!=
0
)
{
dev_err
(
&
pdev
->
dev
,
"fail to register client devices
\n
"
);
goto
fail
4
;
goto
fail
;
}
return
0
;
fail4:
iounmap
(
davinci_vc
->
base
);
fail3:
release_mem_region
(
davinci_vc
->
pbase
,
davinci_vc
->
base_size
);
fail2:
fail:
clk_disable
(
davinci_vc
->
clk
);
clk_put
(
davinci_vc
->
clk
);
davinci_vc
->
clk
=
NULL
;
return
ret
;
}
...
...
@@ -155,12 +132,7 @@ static int davinci_vc_remove(struct platform_device *pdev)
mfd_remove_devices
(
&
pdev
->
dev
);
iounmap
(
davinci_vc
->
base
);
release_mem_region
(
davinci_vc
->
pbase
,
davinci_vc
->
base_size
);
clk_disable
(
davinci_vc
->
clk
);
clk_put
(
davinci_vc
->
clk
);
davinci_vc
->
clk
=
NULL
;
return
0
;
}
...
...
drivers/mfd/htc-egpio.c
浏览文件 @
031d3076
...
...
@@ -286,7 +286,8 @@ static int __init egpio_probe(struct platform_device *pdev)
res
=
platform_get_resource
(
pdev
,
IORESOURCE_MEM
,
0
);
if
(
!
res
)
goto
fail
;
ei
->
base_addr
=
ioremap_nocache
(
res
->
start
,
resource_size
(
res
));
ei
->
base_addr
=
devm_ioremap_nocache
(
&
pdev
->
dev
,
res
->
start
,
resource_size
(
res
));
if
(
!
ei
->
base_addr
)
goto
fail
;
pr_debug
(
"EGPIO phys=%08x virt=%p
\n
"
,
(
u32
)
res
->
start
,
ei
->
base_addr
);
...
...
@@ -380,7 +381,6 @@ static int __exit egpio_remove(struct platform_device *pdev)
irq_set_chained_handler
(
ei
->
chained_irq
,
NULL
);
device_init_wakeup
(
&
pdev
->
dev
,
0
);
}
iounmap
(
ei
->
base_addr
);
return
0
;
}
...
...
include/linux/mfd/davinci_voicecodec.h
浏览文件 @
031d3076
...
...
@@ -112,8 +112,6 @@ struct davinci_vc {
/* Memory resources */
void
__iomem
*
base
;
resource_size_t
pbase
;
size_t
base_size
;
/* MFD cells */
struct
mfd_cell
cells
[
DAVINCI_VC_CELLS
];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录