linux/arch/sh/boards
Johannes Berg e8c9c50269 power management: implement pm_ops.valid for everybody
Almost all users of pm_ops only support mem sleep, don't check in .valid and
don't reject any others in .prepare so users can be confused if they check
/sys/power/state, especially when new states are added (these would then
result in s-t-r although they're supposed to be something different).

This patch implements a generic pm_valid_only_mem function that is then
exported for users and puts it to use in almost all existing pm_ops.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: David Brownell <david-b@pacbell.net>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: linux-pm@lists.linux-foundation.org
Cc: Len Brown <lenb@kernel.org>
Acked-by: Russell King <rmk@arm.linux.org.uk>
Cc: Greg KH <greg@kroah.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-04-30 16:40:40 -07:00
..
dreamcast sh: machvec rework. 2006-09-27 18:17:31 +09:00
hp6xx power management: implement pm_ops.valid for everybody 2007-04-30 16:40:40 -07:00
landisk [PATCH] mark struct file_operations const 2 2007-02-12 09:48:44 -08:00
mpc1211 sh: heartbeat consolidation for banked LEDs. 2007-02-13 15:42:28 +09:00
renesas sh: Kill off I/O cruft for R7780RP. 2007-03-05 20:19:57 +09:00
saturn sh: machvec rework. 2006-09-27 18:17:31 +09:00
se sh: heartbeat consolidation for banked LEDs. 2007-02-13 15:42:28 +09:00
sh03 sh: heartbeat consolidation for banked LEDs. 2007-02-13 15:42:28 +09:00
shmin sh: Fixup SHMIN INTC register definitions. 2007-02-13 10:54:45 +09:00
snapgear sh: Fix IPR-IRQ's for IRQ-chip change breakage. 2006-10-31 12:53:28 +09:00
superh/microdev fix file specification in comments 2006-10-03 23:01:26 +02:00
titan sh: sh775x/titan fixes for irq header changes. 2006-12-06 12:05:02 +09:00
unknown sh: machvec rework. 2006-09-27 18:17:31 +09:00