diff options
Diffstat (limited to 'arch/x86/platform/olpc')
| -rw-r--r-- | arch/x86/platform/olpc/olpc-xo1-pm.c | 2 | ||||
| -rw-r--r-- | arch/x86/platform/olpc/olpc-xo15-sci.c | 12 | 
2 files changed, 3 insertions, 11 deletions
diff --git a/arch/x86/platform/olpc/olpc-xo1-pm.c b/arch/x86/platform/olpc/olpc-xo1-pm.c index ff0174dda81..a9acde72d4e 100644 --- a/arch/x86/platform/olpc/olpc-xo1-pm.c +++ b/arch/x86/platform/olpc/olpc-xo1-pm.c @@ -75,7 +75,7 @@ static int xo1_power_state_enter(suspend_state_t pm_state)  	return 0;  } -asmlinkage int xo1_do_sleep(u8 sleep_state) +asmlinkage __visible int xo1_do_sleep(u8 sleep_state)  {  	void *pgd_addr = __va(read_cr3()); diff --git a/arch/x86/platform/olpc/olpc-xo15-sci.c b/arch/x86/platform/olpc/olpc-xo15-sci.c index fef7d0ba7e3..08e350e757d 100644 --- a/arch/x86/platform/olpc/olpc-xo15-sci.c +++ b/arch/x86/platform/olpc/olpc-xo15-sci.c @@ -15,8 +15,7 @@  #include <linux/power_supply.h>  #include <linux/olpc-ec.h> -#include <acpi/acpi_bus.h> -#include <acpi/acpi_drivers.h> +#include <linux/acpi.h>  #include <asm/olpc.h>  #define DRV_NAME			"olpc-xo15-sci" @@ -40,16 +39,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;  | 
