diff options
Diffstat (limited to 'drivers/base/power/power.h')
-rw-r--r-- | drivers/base/power/power.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/drivers/base/power/power.h b/drivers/base/power/power.h index c0bd03c83b9c..f2a25f18fde7 100644 --- a/drivers/base/power/power.h +++ b/drivers/base/power/power.h | |||
@@ -34,6 +34,7 @@ extern void device_pm_move_last(struct device *); | |||
34 | 34 | ||
35 | static inline void device_pm_init(struct device *dev) | 35 | static inline void device_pm_init(struct device *dev) |
36 | { | 36 | { |
37 | spin_lock_init(&dev->power.lock); | ||
37 | pm_runtime_init(dev); | 38 | pm_runtime_init(dev); |
38 | } | 39 | } |
39 | 40 | ||
@@ -57,18 +58,18 @@ static inline void device_pm_move_last(struct device *dev) {} | |||
57 | * sysfs.c | 58 | * sysfs.c |
58 | */ | 59 | */ |
59 | 60 | ||
60 | extern int dpm_sysfs_add(struct device *); | 61 | extern int dpm_sysfs_add(struct device *dev); |
61 | extern void dpm_sysfs_remove(struct device *); | 62 | extern void dpm_sysfs_remove(struct device *dev); |
63 | extern void rpm_sysfs_remove(struct device *dev); | ||
64 | extern int wakeup_sysfs_add(struct device *dev); | ||
65 | extern void wakeup_sysfs_remove(struct device *dev); | ||
62 | 66 | ||
63 | #else /* CONFIG_PM */ | 67 | #else /* CONFIG_PM */ |
64 | 68 | ||
65 | static inline int dpm_sysfs_add(struct device *dev) | 69 | static inline int dpm_sysfs_add(struct device *dev) { return 0; } |
66 | { | 70 | static inline void dpm_sysfs_remove(struct device *dev) {} |
67 | return 0; | 71 | static inline void rpm_sysfs_remove(struct device *dev) {} |
68 | } | 72 | static inline int wakeup_sysfs_add(struct device *dev) { return 0; } |
69 | 73 | static inline void wakeup_sysfs_remove(struct device *dev) {} | |
70 | static inline void dpm_sysfs_remove(struct device *dev) | ||
71 | { | ||
72 | } | ||
73 | 74 | ||
74 | #endif | 75 | #endif |