diff options
Diffstat (limited to 'drivers/base/power/power.h')
-rw-r--r-- | drivers/base/power/power.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/drivers/base/power/power.h b/drivers/base/power/power.h index 379da4e958e0..6f0dfca8ebdd 100644 --- a/drivers/base/power/power.h +++ b/drivers/base/power/power.h | |||
@@ -1,10 +1,3 @@ | |||
1 | /* | ||
2 | * shutdown.c | ||
3 | */ | ||
4 | |||
5 | extern void device_shutdown(void); | ||
6 | |||
7 | |||
8 | #ifdef CONFIG_PM_SLEEP | 1 | #ifdef CONFIG_PM_SLEEP |
9 | 2 | ||
10 | /* | 3 | /* |
@@ -20,6 +13,9 @@ static inline struct device *to_device(struct list_head *entry) | |||
20 | 13 | ||
21 | extern void device_pm_add(struct device *); | 14 | extern void device_pm_add(struct device *); |
22 | extern void device_pm_remove(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); | ||
23 | 19 | ||
24 | #else /* CONFIG_PM_SLEEP */ | 20 | #else /* CONFIG_PM_SLEEP */ |
25 | 21 | ||
@@ -32,6 +28,15 @@ static inline void device_pm_remove(struct device *dev) | |||
32 | { | 28 | { |
33 | } | 29 | } |
34 | 30 | ||
31 | static inline int pm_sleep_lock(void) | ||
32 | { | ||
33 | return 0; | ||
34 | } | ||
35 | |||
36 | static inline void pm_sleep_unlock(void) | ||
37 | { | ||
38 | } | ||
39 | |||
35 | #endif | 40 | #endif |
36 | 41 | ||
37 | #ifdef CONFIG_PM | 42 | #ifdef CONFIG_PM |