#ifndef __LINUX_PM_LEGACY_H__
#define __LINUX_PM_LEGACY_H__
+#include <linux/config.h>
#ifdef CONFIG_PM_LEGACY
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
*/
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;