PM: Simplify the new suspend/hibernation framework for devices
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 6 Oct 2008 20:46:05 +0000 (22:46 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 18:44:29 +0000 (10:44 -0800)
commitadf094931ffb25ef4b381559918f1a34181a5273
treebd343d4c15b21dff6a73359fd2d82ff77e30e0d4
parent238c6d54830c624f34ac9cf123ac04aebfca5013
PM: Simplify the new suspend/hibernation framework for devices

PM: Simplify the new suspend/hibernation framework for devices

Following the discussion at the Kernel Summit, simplify the new
device PM framework by merging 'struct pm_ops' and
'struct pm_ext_ops' and removing pointers to 'struct pm_ext_ops'
from 'struct platform_driver' and 'struct pci_driver'.

After this change, the suspend/hibernation callbacks will only
reside in 'struct device_driver' as well as at the bus type/
device class/device type level.  Accordingly, PCI and platform
device drivers are now expected to put their suspend/hibernation
callbacks into the 'struct device_driver' embedded in
'struct pci_driver' or 'struct platform_driver', respectively.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@suse.cz>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/platform.c
drivers/base/power/main.c
drivers/pci/pci-driver.c
drivers/usb/core/usb.c
include/linux/device.h
include/linux/pci.h
include/linux/platform_device.h
include/linux/pm.h