PM: Remove power_state.event checks from suspend core code
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 17 Jun 2007 17:49:20 +0000 (19:49 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:09:02 +0000 (16:09 -0700)
commit1c3f7d1c79425dd8f627b8da139fd1855f096b6e
tree36c39ee526bcefc6119b36798635db23cf467e1c
parent515c53576299e32d6bdb6295cfa2fe1307516eb4
PM: Remove power_state.event checks from suspend core code

The suspend routines should be called for every device during a system sleep
transition, regardless of the device's state, so that drivers can regard these
method calls as notifications that the system is about to go to sleep, rather
than as directives to put their devices into the 'off' state.

This is documented in Documentation/power/devices.txt and is already done in
the core resume code, so it seems reasonable to make the core suspend code
behave accordingly.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/power/suspend.c