Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
12520c43
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看板
提交
12520c43
编写于
7月 16, 2011
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
switch assorted clock drivers to debugfs_remove_recursive()
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
f1514638
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
13 addition
and
41 deletion
+13
-41
arch/arm/mach-tegra/clock.c
arch/arm/mach-tegra/clock.c
+2
-5
arch/arm/mach-ux500/clock.c
arch/arm/mach-ux500/clock.c
+3
-17
arch/arm/plat-omap/clock.c
arch/arm/plat-omap/clock.c
+2
-4
arch/arm/plat-samsung/clock.c
arch/arm/plat-samsung/clock.c
+2
-5
arch/arm/plat-spear/clock.c
arch/arm/plat-spear/clock.c
+2
-5
drivers/sh/clk/core.c
drivers/sh/clk/core.c
+2
-5
未找到文件。
arch/arm/mach-tegra/clock.c
浏览文件 @
12520c43
...
...
@@ -585,7 +585,7 @@ static const struct file_operations possible_parents_fops = {
static
int
clk_debugfs_register_one
(
struct
clk
*
c
)
{
struct
dentry
*
d
,
*
child
,
*
child_tmp
;
struct
dentry
*
d
;
d
=
debugfs_create_dir
(
c
->
name
,
clk_debugfs_root
);
if
(
!
d
)
...
...
@@ -614,10 +614,7 @@ static int clk_debugfs_register_one(struct clk *c)
return
0
;
err_out:
d
=
c
->
dent
;
list_for_each_entry_safe
(
child
,
child_tmp
,
&
d
->
d_subdirs
,
d_u
.
d_child
)
debugfs_remove
(
child
);
debugfs_remove
(
c
->
dent
);
debugfs_remove_recursive
(
c
->
dent
);
return
-
ENOMEM
;
}
...
...
arch/arm/mach-ux500/clock.c
浏览文件 @
12520c43
...
...
@@ -635,7 +635,7 @@ static const struct file_operations set_rate_fops = {
static
struct
dentry
*
clk_debugfs_register_dir
(
struct
clk
*
c
,
struct
dentry
*
p_dentry
)
{
struct
dentry
*
d
,
*
clk_d
,
*
child
,
*
child_tmp
;
struct
dentry
*
d
,
*
clk_d
;
char
s
[
255
];
char
*
p
=
s
;
...
...
@@ -666,24 +666,10 @@ static struct dentry *clk_debugfs_register_dir(struct clk *c,
return
clk_d
;
err_out:
d
=
clk_d
;
list_for_each_entry_safe
(
child
,
child_tmp
,
&
d
->
d_subdirs
,
d_u
.
d_child
)
debugfs_remove
(
child
);
debugfs_remove
(
clk_d
);
debugfs_remove_recursive
(
clk_d
);
return
NULL
;
}
static
void
clk_debugfs_remove_dir
(
struct
dentry
*
cdentry
)
{
struct
dentry
*
d
,
*
child
,
*
child_tmp
;
d
=
cdentry
;
list_for_each_entry_safe
(
child
,
child_tmp
,
&
d
->
d_subdirs
,
d_u
.
d_child
)
debugfs_remove
(
child
);
debugfs_remove
(
cdentry
);
return
;
}
static
int
clk_debugfs_register_one
(
struct
clk
*
c
)
{
struct
clk
*
pa
=
c
->
parent_periph
;
...
...
@@ -700,7 +686,7 @@ static int clk_debugfs_register_one(struct clk *c)
c
->
dent_bus
=
clk_debugfs_register_dir
(
c
,
bpa
->
dent_bus
?
bpa
->
dent_bus
:
bpa
->
dent
);
if
((
!
c
->
dent_bus
)
&&
(
c
->
dent
))
{
clk_debugfs_remove_dir
(
c
->
dent
);
debugfs_remove_recursive
(
c
->
dent
);
c
->
dent
=
NULL
;
return
-
ENOMEM
;
}
...
...
arch/arm/plat-omap/clock.c
浏览文件 @
12520c43
...
...
@@ -480,7 +480,7 @@ static struct dentry *clk_debugfs_root;
static
int
clk_debugfs_register_one
(
struct
clk
*
c
)
{
int
err
;
struct
dentry
*
d
,
*
child
,
*
child_tmp
;
struct
dentry
*
d
;
struct
clk
*
pa
=
c
->
parent
;
char
s
[
255
];
char
*
p
=
s
;
...
...
@@ -510,9 +510,7 @@ static int clk_debugfs_register_one(struct clk *c)
err_out:
d
=
c
->
dent
;
list_for_each_entry_safe
(
child
,
child_tmp
,
&
d
->
d_subdirs
,
d_u
.
d_child
)
debugfs_remove
(
child
);
debugfs_remove
(
c
->
dent
);
debugfs_remove_recursive
(
c
->
dent
);
return
err
;
}
...
...
arch/arm/plat-samsung/clock.c
浏览文件 @
12520c43
...
...
@@ -458,7 +458,7 @@ static struct dentry *clk_debugfs_root;
static
int
clk_debugfs_register_one
(
struct
clk
*
c
)
{
int
err
;
struct
dentry
*
d
,
*
child
,
*
child_tmp
;
struct
dentry
*
d
;
struct
clk
*
pa
=
c
->
parent
;
char
s
[
255
];
char
*
p
=
s
;
...
...
@@ -488,10 +488,7 @@ static int clk_debugfs_register_one(struct clk *c)
return
0
;
err_out:
d
=
c
->
dent
;
list_for_each_entry_safe
(
child
,
child_tmp
,
&
d
->
d_subdirs
,
d_u
.
d_child
)
debugfs_remove
(
child
);
debugfs_remove
(
c
->
dent
);
debugfs_remove_recursive
(
c
->
dent
);
return
err
;
}
...
...
arch/arm/plat-spear/clock.c
浏览文件 @
12520c43
...
...
@@ -916,7 +916,7 @@ static struct dentry *clk_debugfs_root;
static
int
clk_debugfs_register_one
(
struct
clk
*
c
)
{
int
err
;
struct
dentry
*
d
,
*
child
;
struct
dentry
*
d
;
struct
clk
*
pa
=
c
->
pclk
;
char
s
[
255
];
char
*
p
=
s
;
...
...
@@ -951,10 +951,7 @@ static int clk_debugfs_register_one(struct clk *c)
return
0
;
err_out:
d
=
c
->
dent
;
list_for_each_entry
(
child
,
&
d
->
d_subdirs
,
d_u
.
d_child
)
debugfs_remove
(
child
);
debugfs_remove
(
c
->
dent
);
debugfs_remove_recursive
(
c
->
dent
);
return
err
;
}
...
...
drivers/sh/clk/core.c
浏览文件 @
12520c43
...
...
@@ -670,7 +670,7 @@ static struct dentry *clk_debugfs_root;
static
int
clk_debugfs_register_one
(
struct
clk
*
c
)
{
int
err
;
struct
dentry
*
d
,
*
child
,
*
child_tmp
;
struct
dentry
*
d
;
struct
clk
*
pa
=
c
->
parent
;
char
s
[
255
];
char
*
p
=
s
;
...
...
@@ -699,10 +699,7 @@ static int clk_debugfs_register_one(struct clk *c)
return
0
;
err_out:
d
=
c
->
dentry
;
list_for_each_entry_safe
(
child
,
child_tmp
,
&
d
->
d_subdirs
,
d_u
.
d_child
)
debugfs_remove
(
child
);
debugfs_remove
(
c
->
dentry
);
debugfs_remove_recursive
(
c
->
dentry
);
return
err
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录