|
@@ -40,16 +40,9 @@ static bool lid_wake_on_close;
|
|
|
*/
|
|
|
static int set_lid_wake_behavior(bool wake_on_close)
|
|
|
{
|
|
|
- struct acpi_object_list arg_list;
|
|
|
- union acpi_object arg;
|
|
|
acpi_status status;
|
|
|
|
|
|
- arg_list.count = 1;
|
|
|
- arg_list.pointer = &arg;
|
|
|
- arg.type = ACPI_TYPE_INTEGER;
|
|
|
- arg.integer.value = wake_on_close;
|
|
|
-
|
|
|
- status = acpi_evaluate_object(NULL, "\\_SB.PCI0.LID.LIDW", &arg_list, NULL);
|
|
|
+ status = acpi_execute_simple_method(NULL, "\\_SB.PCI0.LID.LIDW", wake_on_close);
|
|
|
if (ACPI_FAILURE(status)) {
|
|
|
pr_warning(PFX "failed to set lid behavior\n");
|
|
|
return 1;
|