aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/power/power.h
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/base/power/power.h
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (diff)
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts: litmus/sched_cedf.c
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