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 void device_pm_schedule_removal(struct device *);
17 extern int pm_sleep_lock(void);
18 extern void pm_sleep_unlock(void);
20 #else /* CONFIG_PM_SLEEP */
23 static inline void device_pm_add(struct device *dev)
27 static inline void device_pm_remove(struct device *dev)
31 static inline int pm_sleep_lock(void)
36 static inline void pm_sleep_unlock(void)
48 extern int dpm_sysfs_add(struct device *);
49 extern void dpm_sysfs_remove(struct device *);
53 static inline int dpm_sysfs_add(struct device *dev)
58 static inline void dpm_sysfs_remove(struct device *dev)