aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/ec.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/ec.c')
-rw-r--r--drivers/acpi/ec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index bd1af3e9e4ce..cf41f9fc24a7 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -768,7 +768,7 @@ static acpi_status
768ec_parse_device(acpi_handle handle, u32 Level, void *context, void **retval) 768ec_parse_device(acpi_handle handle, u32 Level, void *context, void **retval)
769{ 769{
770 acpi_status status; 770 acpi_status status;
771 unsigned long long tmp; 771 unsigned long long tmp = 0;
772 772
773 struct acpi_ec *ec = context; 773 struct acpi_ec *ec = context;
774 status = acpi_walk_resources(handle, METHOD_NAME__CRS, 774 status = acpi_walk_resources(handle, METHOD_NAME__CRS,
@@ -783,6 +783,7 @@ ec_parse_device(acpi_handle handle, u32 Level, void *context, void **retval)
783 return status; 783 return status;
784 ec->gpe = tmp; 784 ec->gpe = tmp;
785 /* Use the global lock for all EC transactions? */ 785 /* Use the global lock for all EC transactions? */
786 tmp = 0;
786 acpi_evaluate_integer(handle, "_GLK", NULL, &tmp); 787 acpi_evaluate_integer(handle, "_GLK", NULL, &tmp);
787 ec->global_lock = tmp; 788 ec->global_lock = tmp;
788 ec->handle = handle; 789 ec->handle = handle;