Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6
[deliverable/linux.git] / drivers / base / power / power.h
CommitLineData
1da177e4
LT
1/*
2 * shutdown.c
3 */
4
1da177e4
LT
5extern void device_shutdown(void);
6
7
296699de 8#ifdef CONFIG_PM_SLEEP
1da177e4
LT
9
10/*
11 * main.c
12 */
13
cd59abfc 14extern struct list_head dpm_active; /* The active device list */
1da177e4
LT
15
16static inline struct device * to_device(struct list_head * entry)
17{
cd59abfc 18 return container_of(entry, struct device, power.entry);
1da177e4
LT
19}
20
21extern int device_pm_add(struct device *);
22extern void device_pm_remove(struct device *);
23
24/*
25 * sysfs.c
26 */
27
28extern int dpm_sysfs_add(struct device *);
29extern void dpm_sysfs_remove(struct device *);
30
296699de 31#else /* CONFIG_PM_SLEEP */
1da177e4
LT
32
33
34static inline int device_pm_add(struct device * dev)
35{
36 return 0;
37}
38static inline void device_pm_remove(struct device * dev)
39{
40
41}
42
1da177e4 43#endif
This page took 0.254836 seconds and 5 git commands to generate.