usbnet: init fault (oops) cleanup, whitespace fixes
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / pm_legacy.h
blob514729a446888e21dee4289db2ea4e71f80f6eaa
1 #ifndef __LINUX_PM_LEGACY_H__
2 #define __LINUX_PM_LEGACY_H__
5 #ifdef CONFIG_PM_LEGACY
7 extern int pm_active;
9 #define PM_IS_ACTIVE() (pm_active != 0)
12 * Register a device with power management
14 struct pm_dev __deprecated *
15 pm_register(pm_dev_t type, unsigned long id, pm_callback callback);
18 * Send a request to all devices
20 int __deprecated pm_send_all(pm_request_t rqst, void *data);
22 #else /* CONFIG_PM_LEGACY */
24 #define PM_IS_ACTIVE() 0
26 static inline struct pm_dev *pm_register(pm_dev_t type,
27 unsigned long id,
28 pm_callback callback)
30 return NULL;
33 static inline int pm_send_all(pm_request_t rqst, void *data)
35 return 0;
38 #endif /* CONFIG_PM_LEGACY */
40 #endif /* __LINUX_PM_LEGACY_H__ */