diff options
Diffstat (limited to 'arch/x86/platform/olpc/olpc-xo15-sci.c')
-rw-r--r-- | arch/x86/platform/olpc/olpc-xo15-sci.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/x86/platform/olpc/olpc-xo15-sci.c b/arch/x86/platform/olpc/olpc-xo15-sci.c index fef7d0ba7e3a..649a12befba9 100644 --- a/arch/x86/platform/olpc/olpc-xo15-sci.c +++ b/arch/x86/platform/olpc/olpc-xo15-sci.c | |||
@@ -40,16 +40,9 @@ static bool lid_wake_on_close; | |||
40 | */ | 40 | */ |
41 | static int set_lid_wake_behavior(bool wake_on_close) | 41 | static int set_lid_wake_behavior(bool wake_on_close) |
42 | { | 42 | { |
43 | struct acpi_object_list arg_list; | ||
44 | union acpi_object arg; | ||
45 | acpi_status status; | 43 | acpi_status status; |
46 | 44 | ||
47 | arg_list.count = 1; | 45 | status = acpi_execute_simple_method(NULL, "\\_SB.PCI0.LID.LIDW", wake_on_close); |
48 | arg_list.pointer = &arg; | ||
49 | arg.type = ACPI_TYPE_INTEGER; | ||
50 | arg.integer.value = wake_on_close; | ||
51 | |||
52 | status = acpi_evaluate_object(NULL, "\\_SB.PCI0.LID.LIDW", &arg_list, NULL); | ||
53 | if (ACPI_FAILURE(status)) { | 46 | if (ACPI_FAILURE(status)) { |
54 | pr_warning(PFX "failed to set lid behavior\n"); | 47 | pr_warning(PFX "failed to set lid behavior\n"); |
55 | return 1; | 48 | return 1; |