diff options
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 2e15822fe409..cf4ae5c5d193 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -521,6 +521,14 @@ extern struct device *device_create(struct class *cls, struct device *parent, | |||
521 | dev_t devt, const char *fmt, ...) | 521 | dev_t devt, const char *fmt, ...) |
522 | __attribute__((format(printf,4,5))); | 522 | __attribute__((format(printf,4,5))); |
523 | extern void device_destroy(struct class *cls, dev_t devt); | 523 | extern void device_destroy(struct class *cls, dev_t devt); |
524 | #ifdef CONFIG_PM_SLEEP | ||
525 | extern void destroy_suspended_device(struct class *cls, dev_t devt); | ||
526 | #else /* !CONFIG_PM_SLEEP */ | ||
527 | static inline void destroy_suspended_device(struct class *cls, dev_t devt) | ||
528 | { | ||
529 | device_destroy(cls, devt); | ||
530 | } | ||
531 | #endif /* !CONFIG_PM_SLEEP */ | ||
524 | 532 | ||
525 | /* | 533 | /* |
526 | * Platform "fixup" functions - allow the platform to have their say | 534 | * Platform "fixup" functions - allow the platform to have their say |