]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/pm.h
Pull novell-bugzilla-156426 into release branch
[linux-2.6-omap-h63xx.git] / include / linux / pm.h
index 6df2585c0169765def9648d35c5a0188ba8a3c53..66be58902b17c1f5a282c6fc5172a7fe61fcc56b 100644 (file)
@@ -199,6 +199,12 @@ extern int device_suspend(pm_message_t state);
 
 extern int dpm_runtime_suspend(struct device *, pm_message_t);
 extern void dpm_runtime_resume(struct device *);
+extern void __suspend_report_result(const char *function, void *fn, int ret);
+
+#define suspend_report_result(fn, ret)                                 \
+       do {                                                            \
+               __suspend_report_result(__FUNCTION__, fn, ret);         \
+       } while (0)
 
 #else /* !CONFIG_PM */
 
@@ -219,6 +225,8 @@ static inline void dpm_runtime_resume(struct device * dev)
 {
 }
 
+#define suspend_report_result(fn, ret) do { } while (0)
+
 #endif
 
 /* changes to device_may_wakeup take effect on the next pm state change.