1
linux/drivers/base/power
Rafael J. Wysocki 43a49f8baa PM: Do not check parent state in suspend and resume core code
The checks if the device's parent is in the right state done in
drivers/base/power/suspend.c and drivers/base/power/resume.c serve no particular
purpose, since if the parent is in a wrong power state, the device's suspend or
resume callbacks are supposed to return an error anyway.  Moreover, they are
also useless from the sanity checking point of view, because they rely on the
code being checked to set dev->parent->power.power_state.event appropriately,
which need not happen if that code is buggy.  For these reasons they can be
removed.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-07-11 16:09:02 -07:00
..
main.c PM: Remove pm_parent from struct dev_pm_info 2007-07-11 16:09:01 -07:00
Makefile Add some basic resume trace facilities 2006-06-24 14:44:01 -07:00
power.h Power Management: use mutexes instead of semaphores 2007-07-11 16:09:01 -07:00
resume.c PM: Do not check parent state in suspend and resume core code 2007-07-11 16:09:02 -07:00
runtime.c Power Management: use mutexes instead of semaphores 2007-07-11 16:09:01 -07:00
shutdown.c remove "struct subsystem" as it is no longer needed 2007-05-02 18:57:59 -07:00
suspend.c PM: Do not check parent state in suspend and resume core code 2007-07-11 16:09:02 -07:00
sysfs.c PM: add kconfig option for deprecated .../power/state files 2006-09-25 21:08:37 -07:00
trace.c Add some basic resume trace facilities 2006-06-24 14:44:01 -07:00