power.h (39fe5434cb9de5da40510028b17b96bc4eb312b3) power.h (296699de6bdc717189a331ab6bbe90e05c94db06)
1/*
2 * shutdown.c
3 */
4
5extern void device_shutdown(void);
6
7
1/*
2 * shutdown.c
3 */
4
5extern void device_shutdown(void);
6
7
8#ifdef CONFIG_PM
8#ifdef CONFIG_PM_SLEEP
9
10/*
11 * main.c
12 */
13
14/*
15 * Used to synchronize global power management operations.
16 */

--- 40 unchanged lines hidden (view full) ---

57extern void dpm_power_up(void);
58extern int resume_device(struct device *);
59
60/*
61 * suspend.c
62 */
63extern int suspend_device(struct device *, pm_message_t);
64
9
10/*
11 * main.c
12 */
13
14/*
15 * Used to synchronize global power management operations.
16 */

--- 40 unchanged lines hidden (view full) ---

57extern void dpm_power_up(void);
58extern int resume_device(struct device *);
59
60/*
61 * suspend.c
62 */
63extern int suspend_device(struct device *, pm_message_t);
64
65#else /* CONFIG_PM */
65#else /* CONFIG_PM_SLEEP */
66
67
68static inline int device_pm_add(struct device * dev)
69{
70 return 0;
71}
72static inline void device_pm_remove(struct device * dev)
73{
74
75}
76
77#endif
66
67
68static inline int device_pm_add(struct device * dev)
69{
70 return 0;
71}
72static inline void device_pm_remove(struct device * dev)
73{
74
75}
76
77#endif