5 extern void device_shutdown(void);
14 extern struct list_head dpm_active; /* The active device list */
16 static inline struct device *to_device(struct list_head *entry)
18 return container_of(entry, struct device, power.entry);
21 extern void device_pm_add(struct device *);
22 extern void device_pm_remove(struct device *);
23 extern void device_pm_schedule_removal(struct device *);
24 extern int pm_sleep_lock(void);
25 extern void pm_sleep_unlock(void);
27 #else /* CONFIG_PM_SLEEP */
30 static inline void device_pm_add(struct device *dev)
34 static inline void device_pm_remove(struct device *dev)
38 static inline int pm_sleep_lock(void)
43 static inline void pm_sleep_unlock(void)
55 extern int dpm_sysfs_add(struct device *);
56 extern void dpm_sysfs_remove(struct device *);
60 static inline int dpm_sysfs_add(struct device *dev)
65 static inline void dpm_sysfs_remove(struct device *dev)