Commit a978d779 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] fix acpi write throttle seq file breakage.

From Pavel Machek
parent da7a59ff
...@@ -1356,7 +1356,8 @@ acpi_processor_write_throttling ( ...@@ -1356,7 +1356,8 @@ acpi_processor_write_throttling (
loff_t *data) loff_t *data)
{ {
int result = 0; int result = 0;
struct acpi_processor *pr = (struct acpi_processor *) data; struct seq_file *m = (struct seq_file *)file->private_data;
struct acpi_processor *pr = (struct acpi_processor *)m->private;
char state_string[12] = {'\0'}; char state_string[12] = {'\0'};
ACPI_FUNCTION_TRACE("acpi_processor_write_throttling"); ACPI_FUNCTION_TRACE("acpi_processor_write_throttling");
...@@ -1418,7 +1419,8 @@ acpi_processor_write_limit ( ...@@ -1418,7 +1419,8 @@ acpi_processor_write_limit (
loff_t *data) loff_t *data)
{ {
int result = 0; int result = 0;
struct acpi_processor *pr = (struct acpi_processor *) data; struct seq_file *m = (struct seq_file *)file->private_data;
struct acpi_processor *pr = (struct acpi_processor *)m->private;
char limit_string[25] = {'\0'}; char limit_string[25] = {'\0'};
int px = 0; int px = 0;
int tx = 0; int tx = 0;
......
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