aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pm.h')
-rw-r--r--include/linux/pm.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h
index b2c4fde4e994..ad3cc2eb0d34 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -101,6 +101,7 @@ struct pm_dev
101 */ 101 */
102extern void (*pm_idle)(void); 102extern void (*pm_idle)(void);
103extern void (*pm_power_off)(void); 103extern void (*pm_power_off)(void);
104extern void (*pm_power_off_prepare)(void);
104 105
105typedef int __bitwise suspend_state_t; 106typedef int __bitwise suspend_state_t;
106 107
@@ -267,15 +268,10 @@ struct dev_pm_info {
267 unsigned can_wakeup:1; 268 unsigned can_wakeup:1;
268#ifdef CONFIG_PM 269#ifdef CONFIG_PM
269 unsigned should_wakeup:1; 270 unsigned should_wakeup:1;
270 pm_message_t prev_state;
271 void * saved_state;
272 struct device * pm_parent;
273 struct list_head entry; 271 struct list_head entry;
274#endif 272#endif
275}; 273};
276 274
277extern void device_pm_set_parent(struct device * dev, struct device * parent);
278
279extern int device_power_down(pm_message_t state); 275extern int device_power_down(pm_message_t state);
280extern void device_power_up(void); 276extern void device_power_up(void);
281extern void device_resume(void); 277extern void device_resume(void);
@@ -289,8 +285,6 @@ extern int device_prepare_suspend(pm_message_t state);
289#define device_may_wakeup(dev) \ 285#define device_may_wakeup(dev) \
290 (device_can_wakeup(dev) && (dev)->power.should_wakeup) 286 (device_can_wakeup(dev) && (dev)->power.should_wakeup)
291 287
292extern int dpm_runtime_suspend(struct device *, pm_message_t);
293extern void dpm_runtime_resume(struct device *);
294extern void __suspend_report_result(const char *function, void *fn, int ret); 288extern void __suspend_report_result(const char *function, void *fn, int ret);
295 289
296#define suspend_report_result(fn, ret) \ 290#define suspend_report_result(fn, ret) \
@@ -322,15 +316,6 @@ static inline int device_suspend(pm_message_t state)
322#define device_set_wakeup_enable(dev,val) do{}while(0) 316#define device_set_wakeup_enable(dev,val) do{}while(0)
323#define device_may_wakeup(dev) (0) 317#define device_may_wakeup(dev) (0)
324 318
325static inline int dpm_runtime_suspend(struct device * dev, pm_message_t state)
326{
327 return 0;
328}
329
330static inline void dpm_runtime_resume(struct device * dev)
331{
332}
333
334#define suspend_report_result(fn, ret) do { } while (0) 319#define suspend_report_result(fn, ret) do { } while (0)
335 320
336static inline int call_platform_enable_wakeup(struct device *dev, int is_on) 321static inline int call_platform_enable_wakeup(struct device *dev, int is_on)