diff options
author | Rami Rosen <ramirose@gmail.com> | 2015-09-11 10:49:22 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-09-14 21:03:15 -0400 |
commit | f934c745079ea3a15e8619350faf681dad42cc91 (patch) | |
tree | d4ac61f4503d9a643fa0cef6ceeee400feccdfae /drivers/acpi/internal.h | |
parent | c33cab60bc0e05ddf1ef1b2cba8d16dd010f600a (diff) |
ACPI: change acpi_sleep_proc_init() to return void
This patch changes the type of the return value of the acpi_sleep_proc_init()
method to be void, as this method never fails and its return value is never
used.
Signed-off-by: Rami Rosen <ramirose@gmail.com>\
[ rjw : Fixed up the static inline stub ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/internal.h')
-rw-r--r-- | drivers/acpi/internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h index e72c6a67201f..c31787bef2d3 100644 --- a/drivers/acpi/internal.h +++ b/drivers/acpi/internal.h | |||
@@ -179,13 +179,13 @@ static inline int acpi_sleep_init(void) { return -ENXIO; } | |||
179 | #endif | 179 | #endif |
180 | 180 | ||
181 | #ifdef CONFIG_ACPI_SLEEP | 181 | #ifdef CONFIG_ACPI_SLEEP |
182 | int acpi_sleep_proc_init(void); | 182 | void acpi_sleep_proc_init(void); |
183 | int suspend_nvs_alloc(void); | 183 | int suspend_nvs_alloc(void); |
184 | void suspend_nvs_free(void); | 184 | void suspend_nvs_free(void); |
185 | int suspend_nvs_save(void); | 185 | int suspend_nvs_save(void); |
186 | void suspend_nvs_restore(void); | 186 | void suspend_nvs_restore(void); |
187 | #else | 187 | #else |
188 | static inline int acpi_sleep_proc_init(void) { return 0; } | 188 | static inline void acpi_sleep_proc_init(void) {} |
189 | static inline int suspend_nvs_alloc(void) { return 0; } | 189 | static inline int suspend_nvs_alloc(void) { return 0; } |
190 | static inline void suspend_nvs_free(void) {} | 190 | static inline void suspend_nvs_free(void) {} |
191 | static inline int suspend_nvs_save(void) { return 0; } | 191 | static inline int suspend_nvs_save(void) { return 0; } |