From: Pavel Machek Date: Tue, 13 Sep 2005 08:25:46 +0000 (-0700) Subject: [PATCH] Tell people not to use pm_register() X-Git-Tag: v2.6.14-rc2~58 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f4f9eb0ea14c8c478f0e8137b84a366499335aab;p=linux-2.6-omap-h63xx.git [PATCH] Tell people not to use pm_register() Signed-off-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/Documentation/pm.txt b/Documentation/pm.txt index cc63ae18d14..2ea1149bf6b 100644 --- a/Documentation/pm.txt +++ b/Documentation/pm.txt @@ -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