Commit a4246f2d authored by Andy Grover's avatar Andy Grover

ACPI: Fix write-related /proc entry functionality

parent bc422259
...@@ -314,8 +314,8 @@ static int ...@@ -314,8 +314,8 @@ static int
acpi_system_write_sleep ( acpi_system_write_sleep (
struct file *file, struct file *file,
const char *buffer, const char *buffer,
unsigned long count, size_t count,
void *data) loff_t *ppos)
{ {
acpi_status status = AE_OK; acpi_status status = AE_OK;
char state_string[12] = {'\0'}; char state_string[12] = {'\0'};
...@@ -465,8 +465,8 @@ static int ...@@ -465,8 +465,8 @@ static int
acpi_system_write_alarm ( acpi_system_write_alarm (
struct file *file, struct file *file,
const char *buffer, const char *buffer,
unsigned long count, size_t count,
void *data) loff_t *ppos)
{ {
int result = 0; int result = 0;
char alarm_string[30] = {'\0'}; char alarm_string[30] = {'\0'};
...@@ -674,7 +674,7 @@ static int __init acpi_sleep_init(void) ...@@ -674,7 +674,7 @@ static int __init acpi_sleep_init(void)
ACPI_SYSTEM_FILE_SLEEP)); ACPI_SYSTEM_FILE_SLEEP));
else { else {
entry->proc_fops = &acpi_system_sleep_fops; entry->proc_fops = &acpi_system_sleep_fops;
entry->write_proc = acpi_system_write_sleep; entry->proc_fops->write = acpi_system_write_sleep;
} }
/* 'alarm' [R/W] */ /* 'alarm' [R/W] */
...@@ -686,7 +686,7 @@ static int __init acpi_sleep_init(void) ...@@ -686,7 +686,7 @@ static int __init acpi_sleep_init(void)
ACPI_SYSTEM_FILE_ALARM)); ACPI_SYSTEM_FILE_ALARM));
else { else {
entry->proc_fops = &acpi_system_alarm_fops; entry->proc_fops = &acpi_system_alarm_fops;
entry->write_proc = acpi_system_write_alarm; entry->proc_fops->write = acpi_system_write_alarm;
} }
/* Install the soft-off (S5) handler. */ /* Install the soft-off (S5) handler. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment