Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git] / include / linux / pm_legacy.h
index 514729a..008932d 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __LINUX_PM_LEGACY_H__
 #define __LINUX_PM_LEGACY_H__
 
+#include <linux/config.h>
 
 #ifdef CONFIG_PM_LEGACY
 
@@ -14,6 +15,11 @@ extern int pm_active;
 struct pm_dev __deprecated *
 pm_register(pm_dev_t type, unsigned long id, pm_callback callback);
 
+/*
+ * Unregister all devices with matching callback
+ */
+void __deprecated pm_unregister_all(pm_callback callback);
+
 /*
  * Send a request to all devices
  */
@@ -30,6 +36,8 @@ static inline struct pm_dev *pm_register(pm_dev_t type,
        return NULL;
 }
 
+static inline void pm_unregister_all(pm_callback callback) {}
+
 static inline int pm_send_all(pm_request_t rqst, void *data)
 {
        return 0;