X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fpm_legacy.h;h=1252b45face162d02b6d553429475786055503ab;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=008932d73c3564db945995b5cc1db52c8811c882;hpb=f7ed79d23a47594e7834d66a8f14449796d4f3e6;p=linux-2.6.git diff --git a/include/linux/pm_legacy.h b/include/linux/pm_legacy.h index 008932d73..1252b45fa 100644 --- a/include/linux/pm_legacy.h +++ b/include/linux/pm_legacy.h @@ -15,6 +15,11 @@ 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 */ @@ -36,6 +41,8 @@ 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)