PM: Remove destroy_suspended_device()
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 23 Mar 2008 19:28:24 +0000 (20:28 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 20 Apr 2008 02:10:28 +0000 (19:10 -0700)
commitb844eba292b477cda14582bfc6f535deed57a82d
treeb2418a9a4fc672654f4592ae0a3e2853d82271c3
parent138fe4e069798d9aa948a5402ff15e58f483ee4e
PM: Remove destroy_suspended_device()

After 2.6.24 there was a plan to make the PM core acquire all device
semaphores during a suspend/hibernation to protect itself from
concurrent operations involving device objects.  That proved to be
too heavy-handed and we found a better way to achieve the goal, but
before it happened, we had introduced the functions
device_pm_schedule_removal() and destroy_suspended_device() to allow
drivers to "safely" destroy a suspended device and we had adapted some
drivers to use them.  Now that these functions are no longer necessary,
it seems reasonable to remove them and modify their users to use the
normal device unregistration instead.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 files changed:
arch/x86/kernel/cpuid.c
arch/x86/kernel/msr.c
drivers/base/core.c
drivers/base/power/main.c
drivers/char/hw_random/core.c
drivers/char/misc.c
drivers/leds/led-class.c
drivers/net/wireless/b43/leds.c
drivers/net/wireless/b43/main.c
include/linux/device.h
include/linux/hw_random.h
include/linux/leds.h
include/linux/miscdevice.h