b43: Workaround invalid bluetooth settings
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / base / power / power.h
blobe32d3bdb92c1dbf45d02c161130fcafbdd0044d9
1 #ifdef CONFIG_PM_SLEEP
3 /*
4 * main.c
5 */
7 extern struct list_head dpm_active; /* The active device list */
9 static inline struct device *to_device(struct list_head *entry)
11 return container_of(entry, struct device, power.entry);
14 extern void device_pm_add(struct device *);
15 extern void device_pm_remove(struct device *);
16 extern int pm_sleep_lock(void);
17 extern void pm_sleep_unlock(void);
19 #else /* CONFIG_PM_SLEEP */
22 static inline void device_pm_add(struct device *dev)
26 static inline void device_pm_remove(struct device *dev)
30 static inline int pm_sleep_lock(void)
32 return 0;
35 static inline void pm_sleep_unlock(void)
39 #endif
41 #ifdef CONFIG_PM
44 * sysfs.c
47 extern int dpm_sysfs_add(struct device *);
48 extern void dpm_sysfs_remove(struct device *);
50 #else /* CONFIG_PM */
52 static inline int dpm_sysfs_add(struct device *dev)
54 return 0;
57 static inline void dpm_sysfs_remove(struct device *dev)
61 #endif