aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/power/power.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/power/power.h')
-rw-r--r--drivers/base/power/power.h21
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
35static inline void device_pm_init(struct device *dev) 35static 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
60extern int dpm_sysfs_add(struct device *); 61extern int dpm_sysfs_add(struct device *dev);
61extern void dpm_sysfs_remove(struct device *); 62extern void dpm_sysfs_remove(struct device *dev);
63extern void rpm_sysfs_remove(struct device *dev);
64extern int wakeup_sysfs_add(struct device *dev);
65extern void wakeup_sysfs_remove(struct device *dev);
62 66
63#else /* CONFIG_PM */ 67#else /* CONFIG_PM */
64 68
65static inline int dpm_sysfs_add(struct device *dev) 69static inline int dpm_sysfs_add(struct device *dev) { return 0; }
66{ 70static inline void dpm_sysfs_remove(struct device *dev) {}
67 return 0; 71static inline void rpm_sysfs_remove(struct device *dev) {}
68} 72static inline int wakeup_sysfs_add(struct device *dev) { return 0; }
69 73static inline void wakeup_sysfs_remove(struct device *dev) {}
70static inline void dpm_sysfs_remove(struct device *dev)
71{
72}
73 74
74#endif 75#endif