git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
include
/
linux
/
pm_legacy.h
diff --git
a/include/linux/pm_legacy.h
b/include/linux/pm_legacy.h
index
514729a
..
1252b45
100644
(file)
--- a/
include/linux/pm_legacy.h
+++ b/
include/linux/pm_legacy.h
@@
-1,6
+1,7
@@
#ifndef __LINUX_PM_LEGACY_H__
#define __LINUX_PM_LEGACY_H__
#ifndef __LINUX_PM_LEGACY_H__
#define __LINUX_PM_LEGACY_H__
+#include <linux/config.h>
#ifdef CONFIG_PM_LEGACY
#ifdef CONFIG_PM_LEGACY
@@
-14,6
+15,16
@@
extern int pm_active;
struct pm_dev __deprecated *
pm_register(pm_dev_t type, unsigned long id, pm_callback callback);
struct pm_dev __deprecated *
pm_register(pm_dev_t type, unsigned long id, pm_callback callback);
+/*
+ * Unregister a device with power management
+ */
+void __deprecated pm_unregister(struct pm_dev *dev);
+
+/*
+ * Unregister all devices with matching callback
+ */
+void __deprecated pm_unregister_all(pm_callback callback);
+
/*
* Send a request to all devices
*/
/*
* Send a request to all devices
*/
@@
-30,6
+41,10
@@
static inline struct pm_dev *pm_register(pm_dev_t type,
return NULL;
}
return NULL;
}
+static inline void pm_unregister(struct pm_dev *dev) {}
+
+static inline void pm_unregister_all(pm_callback callback) {}
+
static inline int pm_send_all(pm_request_t rqst, void *data)
{
return 0;
static inline int pm_send_all(pm_request_t rqst, void *data)
{
return 0;