Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
2c92d755
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2c92d755
编写于
8月 11, 2005
作者:
T
Thomas Gleixner
提交者:
Thomas Gleixner
11月 06, 2005
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[MTD] Remove deprecated power management functions
Signed-off-by:
N
Thomas Gleixner
<
tglx@linutronix.de
>
上级
e21f6c02
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
1 addition
and
45 deletion
+1
-45
drivers/mtd/mtdcore.c
drivers/mtd/mtdcore.c
+1
-45
未找到文件。
drivers/mtd/mtdcore.c
浏览文件 @
2c92d755
/*
* $Id: mtdcore.c,v 1.4
5 2005/02/18 14:34:50 dedekind
Exp $
* $Id: mtdcore.c,v 1.4
6 2005/08/11 17:13:43 gleixner
Exp $
*
* Core registration and callback routines for MTD
* drivers and users.
...
...
@@ -296,39 +296,6 @@ EXPORT_SYMBOL(unregister_mtd_user);
EXPORT_SYMBOL
(
default_mtd_writev
);
EXPORT_SYMBOL
(
default_mtd_readv
);
/*====================================================================*/
/* Power management code */
#ifdef CONFIG_PM
#include <linux/pm.h>
static
struct
pm_dev
*
mtd_pm_dev
=
NULL
;
static
int
mtd_pm_callback
(
struct
pm_dev
*
dev
,
pm_request_t
rqst
,
void
*
data
)
{
int
ret
=
0
,
i
;
if
(
down_trylock
(
&
mtd_table_mutex
))
return
-
EAGAIN
;
if
(
rqst
==
PM_SUSPEND
)
{
for
(
i
=
0
;
ret
==
0
&&
i
<
MAX_MTD_DEVICES
;
i
++
)
{
if
(
mtd_table
[
i
]
&&
mtd_table
[
i
]
->
suspend
)
ret
=
mtd_table
[
i
]
->
suspend
(
mtd_table
[
i
]);
}
}
else
i
=
MAX_MTD_DEVICES
-
1
;
if
(
rqst
==
PM_RESUME
||
ret
)
{
for
(
;
i
>=
0
;
i
--
)
{
if
(
mtd_table
[
i
]
&&
mtd_table
[
i
]
->
resume
)
mtd_table
[
i
]
->
resume
(
mtd_table
[
i
]);
}
}
up
(
&
mtd_table_mutex
);
return
ret
;
}
#endif
/*====================================================================*/
/* Support for /proc/mtd */
...
...
@@ -388,22 +355,11 @@ static int __init init_mtd(void)
if
((
proc_mtd
=
create_proc_entry
(
"mtd"
,
0
,
NULL
)))
proc_mtd
->
read_proc
=
mtd_read_proc
;
#endif
#ifdef CONFIG_PM
mtd_pm_dev
=
pm_register
(
PM_UNKNOWN_DEV
,
0
,
mtd_pm_callback
);
#endif
return
0
;
}
static
void
__exit
cleanup_mtd
(
void
)
{
#ifdef CONFIG_PM
if
(
mtd_pm_dev
)
{
pm_unregister
(
mtd_pm_dev
);
mtd_pm_dev
=
NULL
;
}
#endif
#ifdef CONFIG_PROC_FS
if
(
proc_mtd
)
remove_proc_entry
(
"mtd"
,
NULL
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录