mm/vmstat.c: proper externs
[linux-2.6/mini2440.git] / include / linux / pm_legacy.h
blob446f4f42b952894b3ffe1c2cb2cf91780e86ee33
1 #ifndef __LINUX_PM_LEGACY_H__
2 #define __LINUX_PM_LEGACY_H__
5 #ifdef CONFIG_PM_LEGACY
7 /*
8 * Register a device with power management
9 */
10 struct pm_dev __deprecated *
11 pm_register(pm_dev_t type, unsigned long id, pm_callback callback);
14 * Send a request to all devices
16 int __deprecated pm_send_all(pm_request_t rqst, void *data);
18 #else /* CONFIG_PM_LEGACY */
20 static inline struct pm_dev *pm_register(pm_dev_t type,
21 unsigned long id,
22 pm_callback callback)
24 return NULL;
27 static inline int pm_send_all(pm_request_t rqst, void *data)
29 return 0;
32 #endif /* CONFIG_PM_LEGACY */
34 #endif /* __LINUX_PM_LEGACY_H__ */