]> git.baikalelectronics.ru Git - kernel.git/commit
PM: Remove prev_state from struct dev_pm_info
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 17 Jun 2007 17:48:06 +0000 (19:48 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:09:02 +0000 (16:09 -0700)
commitaa19204c190dad496ba45c550de71fc30b0695be
tree210def9ddfced2800dc014a49a6f6a37dbf795eb
parent52305a171e7f563b37754a927786fc6d59cb9e02
PM: Remove prev_state from struct dev_pm_info

The prev_state member of struct dev_pm_info (defined in include/linux/pm.h) is
only used during a resume to check if the device's state before the suspend was
'off', in which case the device is not resumed.  However, in such cases the
decision whether or not to resume the device should be made on the driver level
and the resume callbacks from the device's bus and class should be executed
anyway (the may be needed for some things other than just powering on the
device).

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/power/resume.c
drivers/base/power/suspend.c
drivers/usb/core/hub.c
include/linux/pm.h