diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/pm.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h index 83bae1cbe55b..c61d5de837ef 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h | |||
@@ -243,6 +243,9 @@ extern int device_suspend(pm_message_t state); | |||
243 | #define device_may_wakeup(dev) \ | 243 | #define device_may_wakeup(dev) \ |
244 | (device_can_wakeup(dev) && (dev)->power.should_wakeup) | 244 | (device_can_wakeup(dev) && (dev)->power.should_wakeup) |
245 | 245 | ||
246 | extern int dpm_runtime_suspend(struct device *, pm_message_t); | ||
247 | extern void dpm_runtime_resume(struct device *); | ||
248 | |||
246 | #else /* !CONFIG_PM */ | 249 | #else /* !CONFIG_PM */ |
247 | 250 | ||
248 | static inline int device_suspend(pm_message_t state) | 251 | static inline int device_suspend(pm_message_t state) |
@@ -253,6 +256,16 @@ static inline int device_suspend(pm_message_t state) | |||
253 | #define device_set_wakeup_enable(dev,val) do{}while(0) | 256 | #define device_set_wakeup_enable(dev,val) do{}while(0) |
254 | #define device_may_wakeup(dev) (0) | 257 | #define device_may_wakeup(dev) (0) |
255 | 258 | ||
259 | static inline int dpm_runtime_suspend(struct device * dev, pm_message_t state) | ||
260 | { | ||
261 | return 0; | ||
262 | } | ||
263 | |||
264 | static inline void dpm_runtime_resume(struct device * dev) | ||
265 | { | ||
266 | |||
267 | } | ||
268 | |||
256 | #endif | 269 | #endif |
257 | 270 | ||
258 | /* changes to device_may_wakeup take effect on the next pm state change. | 271 | /* changes to device_may_wakeup take effect on the next pm state change. |