]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix acpi write throttle seq file breakage.
authorDave Jones <davej@codemonkey.org.uk>
Thu, 20 Mar 2003 13:55:14 +0000 (05:55 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 20 Mar 2003 13:55:14 +0000 (05:55 -0800)
From Pavel Machek

drivers/acpi/processor.c

index 3940e529afae016ac05012220b506dbdf83358b5..fb8cd6bcc4cb341b43721935241e0ac6361924f6 100644 (file)
@@ -1356,7 +1356,8 @@ acpi_processor_write_throttling (
         loff_t                 *data)
 {
        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'};
 
        ACPI_FUNCTION_TRACE("acpi_processor_write_throttling");
@@ -1418,7 +1419,8 @@ acpi_processor_write_limit (
        loff_t                  *data)
 {
        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'};
        int                     px = 0;
        int                     tx = 0;