From: Shaohua Li Date: Sun, 30 Oct 2005 23:00:01 +0000 (-0800) Subject: [PATCH] introduce .valid callback for pm_ops X-Git-Tag: v2.6.15-rc1~59^2~15^2~139 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb9289eb20df6b54214c45ac7c6bf5179a149026;p=pandora-kernel.git [PATCH] introduce .valid callback for pm_ops Add pm_ops.valid callback, so only the available pm states show in /sys/power/state. And this also makes an earlier states error report at enter_state before we do actual suspend/resume. Signed-off-by: Shaohua Li Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed