]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/device.h
PM: Acquire device locks on suspend
[linux-2.6-omap-h63xx.git] / include / linux / device.h
index 2e15822fe40931cb88eb627971f1a5db41f9c892..cf4ae5c5d193c1d1d364b3f63c8c7416185c7e3e 100644 (file)
@@ -521,6 +521,14 @@ extern struct device *device_create(struct class *cls, struct device *parent,
                                    dev_t devt, const char *fmt, ...)
                                    __attribute__((format(printf,4,5)));
 extern void device_destroy(struct class *cls, dev_t devt);
+#ifdef CONFIG_PM_SLEEP
+extern void destroy_suspended_device(struct class *cls, dev_t devt);
+#else /* !CONFIG_PM_SLEEP */
+static inline void destroy_suspended_device(struct class *cls, dev_t devt)
+{
+       device_destroy(cls, devt);
+}
+#endif /* !CONFIG_PM_SLEEP */
 
 /*
  * Platform "fixup" functions - allow the platform to have their say