Skip to content

Commit

Permalink
ACPI: WMI: Set instance for query block calls
Browse files Browse the repository at this point in the history
Although the necessary data structure was set up, it was never actually
passed in, so data block calls have only been working by sheer chance.

(On Acer laptops. the data block methods we've been calling never look at
the instance value, hence acer-wmi never triggered this before).

f3454ae brought this to light.

Signed-off-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
  • Loading branch information
Carlos Corbacho authored and Andi Kleen committed Aug 15, 2008
1 parent b635ace commit dab36ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/wmi.c
Original file line number Diff line number Diff line change
@@ -347,7 +347,7 @@ struct acpi_buffer *out)
strcpy(method, "WQ");
strncat(method, block->object_id, 2);

status = acpi_evaluate_object(handle, method, NULL, out);
status = acpi_evaluate_object(handle, method, &input, out);

/*
* If ACPI_WMI_EXPENSIVE, call the relevant WCxx method, even if

0 comments on commit dab36ad

Please sign in to comment.