diff options
Diffstat (limited to 'drivers/acpi/internal.h')
-rw-r--r-- | drivers/acpi/internal.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h index a212bfeddf8c..ca75b9ce0489 100644 --- a/drivers/acpi/internal.h +++ b/drivers/acpi/internal.h | |||
@@ -21,8 +21,6 @@ | |||
21 | #ifndef _ACPI_INTERNAL_H_ | 21 | #ifndef _ACPI_INTERNAL_H_ |
22 | #define _ACPI_INTERNAL_H_ | 22 | #define _ACPI_INTERNAL_H_ |
23 | 23 | ||
24 | #include <linux/sysdev.h> | ||
25 | |||
26 | #define PREFIX "ACPI: " | 24 | #define PREFIX "ACPI: " |
27 | 25 | ||
28 | int init_acpi_device_notify(void); | 26 | int init_acpi_device_notify(void); |
@@ -30,9 +28,10 @@ int acpi_scan_init(void); | |||
30 | int acpi_sysfs_init(void); | 28 | int acpi_sysfs_init(void); |
31 | 29 | ||
32 | #ifdef CONFIG_DEBUG_FS | 30 | #ifdef CONFIG_DEBUG_FS |
31 | extern struct dentry *acpi_debugfs_dir; | ||
33 | int acpi_debugfs_init(void); | 32 | int acpi_debugfs_init(void); |
34 | #else | 33 | #else |
35 | static inline int acpi_debugfs_init(void) { return 0; } | 34 | static inline void acpi_debugfs_init(void) { return; } |
36 | #endif | 35 | #endif |
37 | 36 | ||
38 | /* -------------------------------------------------------------------------- | 37 | /* -------------------------------------------------------------------------- |
@@ -41,9 +40,10 @@ static inline int acpi_debugfs_init(void) { return 0; } | |||
41 | int acpi_power_init(void); | 40 | int acpi_power_init(void); |
42 | int acpi_device_sleep_wake(struct acpi_device *dev, | 41 | int acpi_device_sleep_wake(struct acpi_device *dev, |
43 | int enable, int sleep_state, int dev_state); | 42 | int enable, int sleep_state, int dev_state); |
44 | int acpi_power_get_inferred_state(struct acpi_device *device); | 43 | int acpi_power_get_inferred_state(struct acpi_device *device, int *state); |
44 | int acpi_power_on_resources(struct acpi_device *device, int state); | ||
45 | int acpi_power_transition(struct acpi_device *device, int state); | 45 | int acpi_power_transition(struct acpi_device *device, int state); |
46 | extern int acpi_power_nocheck; | 46 | int acpi_bus_init_power(struct acpi_device *device); |
47 | 47 | ||
48 | int acpi_wakeup_device_init(void); | 48 | int acpi_wakeup_device_init(void); |
49 | void acpi_early_processor_set_pdc(void); | 49 | void acpi_early_processor_set_pdc(void); |
@@ -63,7 +63,6 @@ struct acpi_ec { | |||
63 | struct list_head list; | 63 | struct list_head list; |
64 | struct transaction *curr; | 64 | struct transaction *curr; |
65 | spinlock_t curr_lock; | 65 | spinlock_t curr_lock; |
66 | struct sys_device sysdev; | ||
67 | }; | 66 | }; |
68 | 67 | ||
69 | extern struct acpi_ec *first_ec; | 68 | extern struct acpi_ec *first_ec; |
@@ -82,8 +81,16 @@ extern int acpi_sleep_init(void); | |||
82 | 81 | ||
83 | #ifdef CONFIG_ACPI_SLEEP | 82 | #ifdef CONFIG_ACPI_SLEEP |
84 | int acpi_sleep_proc_init(void); | 83 | int acpi_sleep_proc_init(void); |
84 | int suspend_nvs_alloc(void); | ||
85 | void suspend_nvs_free(void); | ||
86 | int suspend_nvs_save(void); | ||
87 | void suspend_nvs_restore(void); | ||
85 | #else | 88 | #else |
86 | static inline int acpi_sleep_proc_init(void) { return 0; } | 89 | static inline int acpi_sleep_proc_init(void) { return 0; } |
90 | static inline int suspend_nvs_alloc(void) { return 0; } | ||
91 | static inline void suspend_nvs_free(void) {} | ||
92 | static inline int suspend_nvs_save(void) { return 0; } | ||
93 | static inline void suspend_nvs_restore(void) {} | ||
87 | #endif | 94 | #endif |
88 | 95 | ||
89 | #endif /* _ACPI_INTERNAL_H_ */ | 96 | #endif /* _ACPI_INTERNAL_H_ */ |