diff options
Diffstat (limited to 'drivers/base/power/power.h')
-rw-r--r-- | drivers/base/power/power.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/drivers/base/power/power.h b/drivers/base/power/power.h index 698dde742587..f2a25f18fde7 100644 --- a/drivers/base/power/power.h +++ b/drivers/base/power/power.h | |||
@@ -58,19 +58,18 @@ static inline void device_pm_move_last(struct device *dev) {} | |||
58 | * sysfs.c | 58 | * sysfs.c |
59 | */ | 59 | */ |
60 | 60 | ||
61 | extern int dpm_sysfs_add(struct device *); | 61 | extern int dpm_sysfs_add(struct device *dev); |
62 | extern void dpm_sysfs_remove(struct device *); | 62 | extern void dpm_sysfs_remove(struct device *dev); |
63 | extern void rpm_sysfs_remove(struct device *); | 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); | ||
64 | 66 | ||
65 | #else /* CONFIG_PM */ | 67 | #else /* CONFIG_PM */ |
66 | 68 | ||
67 | static inline int dpm_sysfs_add(struct device *dev) | 69 | static inline int dpm_sysfs_add(struct device *dev) { return 0; } |
68 | { | 70 | static inline void dpm_sysfs_remove(struct device *dev) {} |
69 | return 0; | 71 | static inline void rpm_sysfs_remove(struct device *dev) {} |
70 | } | 72 | static inline int wakeup_sysfs_add(struct device *dev) { return 0; } |
71 | 73 | static inline void wakeup_sysfs_remove(struct device *dev) {} | |
72 | static inline void dpm_sysfs_remove(struct device *dev) | ||
73 | { | ||
74 | } | ||
75 | 74 | ||
76 | #endif | 75 | #endif |