X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fpm_legacy.h;fp=include%2Flinux%2Fpm_legacy.h;h=1252b45face162d02b6d553429475786055503ab;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=514729a446888e21dee4289db2ea4e71f80f6eaa;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/include/linux/pm_legacy.h b/include/linux/pm_legacy.h index 514729a44..1252b45fa 100644 --- 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__ +#include #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); +/* + * 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 */ @@ -30,6 +41,10 @@ static inline struct pm_dev *pm_register(pm_dev_t type, 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;