diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2008-03-23 15:28:24 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-19 22:10:28 -0400 |
commit | b844eba292b477cda14582bfc6f535deed57a82d (patch) | |
tree | b2418a9a4fc672654f4592ae0a3e2853d82271c3 /include/linux/device.h | |
parent | 138fe4e069798d9aa948a5402ff15e58f483ee4e (diff) |
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>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 441461f5ee20..dc3429e2eb0f 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -545,20 +545,6 @@ extern struct device *device_create(struct class *cls, struct device *parent, | |||
545 | dev_t devt, const char *fmt, ...) | 545 | dev_t devt, const char *fmt, ...) |
546 | __attribute__((format(printf, 4, 5))); | 546 | __attribute__((format(printf, 4, 5))); |
547 | extern void device_destroy(struct class *cls, dev_t devt); | 547 | extern void device_destroy(struct class *cls, dev_t devt); |
548 | #ifdef CONFIG_PM_SLEEP | ||
549 | extern void destroy_suspended_device(struct class *cls, dev_t devt); | ||
550 | extern void device_pm_schedule_removal(struct device *); | ||
551 | #else /* !CONFIG_PM_SLEEP */ | ||
552 | static inline void destroy_suspended_device(struct class *cls, dev_t devt) | ||
553 | { | ||
554 | device_destroy(cls, devt); | ||
555 | } | ||
556 | |||
557 | static inline void device_pm_schedule_removal(struct device *dev) | ||
558 | { | ||
559 | device_unregister(dev); | ||
560 | } | ||
561 | #endif /* !CONFIG_PM_SLEEP */ | ||
562 | 548 | ||
563 | /* | 549 | /* |
564 | * Platform "fixup" functions - allow the platform to have their say | 550 | * Platform "fixup" functions - allow the platform to have their say |