mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
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>
This commit is contained in:
parent
c33cab60bc
commit
f934c74507
2 changed files with 3 additions and 5 deletions
|
@ -179,13 +179,13 @@ static inline int acpi_sleep_init(void) { return -ENXIO; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ACPI_SLEEP
|
#ifdef CONFIG_ACPI_SLEEP
|
||||||
int acpi_sleep_proc_init(void);
|
void acpi_sleep_proc_init(void);
|
||||||
int suspend_nvs_alloc(void);
|
int suspend_nvs_alloc(void);
|
||||||
void suspend_nvs_free(void);
|
void suspend_nvs_free(void);
|
||||||
int suspend_nvs_save(void);
|
int suspend_nvs_save(void);
|
||||||
void suspend_nvs_restore(void);
|
void suspend_nvs_restore(void);
|
||||||
#else
|
#else
|
||||||
static inline int acpi_sleep_proc_init(void) { return 0; }
|
static inline void acpi_sleep_proc_init(void) {}
|
||||||
static inline int suspend_nvs_alloc(void) { return 0; }
|
static inline int suspend_nvs_alloc(void) { return 0; }
|
||||||
static inline void suspend_nvs_free(void) {}
|
static inline void suspend_nvs_free(void) {}
|
||||||
static inline int suspend_nvs_save(void) { return 0; }
|
static inline int suspend_nvs_save(void) { return 0; }
|
||||||
|
|
|
@ -144,11 +144,9 @@ static const struct file_operations acpi_system_wakeup_device_fops = {
|
||||||
.release = single_release,
|
.release = single_release,
|
||||||
};
|
};
|
||||||
|
|
||||||
int __init acpi_sleep_proc_init(void)
|
void __init acpi_sleep_proc_init(void)
|
||||||
{
|
{
|
||||||
/* 'wakeup device' [R/W] */
|
/* 'wakeup device' [R/W] */
|
||||||
proc_create("wakeup", S_IFREG | S_IRUGO | S_IWUSR,
|
proc_create("wakeup", S_IFREG | S_IRUGO | S_IWUSR,
|
||||||
acpi_root_dir, &acpi_system_wakeup_device_fops);
|
acpi_root_dir, &acpi_system_wakeup_device_fops);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue