PM: merge device power-management source files
[linux-2.6/verdex.git] / drivers / base / power / power.h
blob5c4efd493fa503919b787ed6e5f6d3a4747282c5
1 /*
2 * shutdown.c
3 */
5 extern void device_shutdown(void);
8 #ifdef CONFIG_PM_SLEEP
11 * main.c
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 int device_pm_add(struct device *);
22 extern void device_pm_remove(struct device *);
25 * sysfs.c
28 extern int dpm_sysfs_add(struct device *);
29 extern void dpm_sysfs_remove(struct device *);
31 #else /* CONFIG_PM_SLEEP */
34 static inline int device_pm_add(struct device * dev)
36 return 0;
38 static inline void device_pm_remove(struct device * dev)
43 #endif