diff options
author | Pavel Machek <pavel@suse.cz> | 2005-09-13 04:25:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-13 11:22:33 -0400 |
commit | f4f9eb0ea14c8c478f0e8137b84a366499335aab (patch) | |
tree | c23bf19babd35fed7685aa2a3b8627a07d4193b9 /Documentation/pm.txt | |
parent | 1cc5753f86589c5fb7e2f4a1fe778db3881f8f72 (diff) |
[PATCH] Tell people not to use pm_register()
Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation/pm.txt')
-rw-r--r-- | Documentation/pm.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/pm.txt b/Documentation/pm.txt index cc63ae18d147..2ea1149bf6b0 100644 --- a/Documentation/pm.txt +++ b/Documentation/pm.txt | |||
@@ -38,6 +38,12 @@ system the associated daemon will exit gracefully. | |||
38 | 38 | ||
39 | Driver Interface -- OBSOLETE, DO NOT USE! | 39 | Driver Interface -- OBSOLETE, DO NOT USE! |
40 | ----------------************************* | 40 | ----------------************************* |
41 | |||
42 | Note: pm_register(), pm_access(), pm_dev_idle() and friends are | ||
43 | obsolete. Please do not use them. Instead you should properly hook | ||
44 | your driver into the driver model, and use its suspend()/resume() | ||
45 | callbacks to do this kind of stuff. | ||
46 | |||
41 | If you are writing a new driver or maintaining an old driver, it | 47 | If you are writing a new driver or maintaining an old driver, it |
42 | should include power management support. Without power management | 48 | should include power management support. Without power management |
43 | support, a single driver may prevent a system with power management | 49 | support, a single driver may prevent a system with power management |