Skip to content

Commit

Permalink
[PATCH] Tell people not to use pm_register()
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Machek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Pavel Machek authored and Linus Torvalds committed Sep 13, 2005
1 parent 1cc5753 commit f4f9eb0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Documentation/pm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ system the associated daemon will exit gracefully.

Driver Interface -- OBSOLETE, DO NOT USE!
----------------*************************

Note: pm_register(), pm_access(), pm_dev_idle() and friends are
obsolete. Please do not use them. Instead you should properly hook
your driver into the driver model, and use its suspend()/resume()
callbacks to do this kind of stuff.

If you are writing a new driver or maintaining an old driver, it
should include power management support. Without power management
support, a single driver may prevent a system with power management
Expand Down

0 comments on commit f4f9eb0

Please sign in to comment.