Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
2c92d755
Commit
2c92d755
authored
Aug 11, 2005
by
Thomas Gleixner
Committed by
Thomas Gleixner
Nov 06, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MTD] Remove deprecated power management functions
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
e21f6c02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
45 deletions
+1
-45
drivers/mtd/mtdcore.c
drivers/mtd/mtdcore.c
+1
-45
No files found.
drivers/mtd/mtdcore.c
View file @
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment