aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-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 ef42316f89f5..523ac5b229a5 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -736,7 +736,7 @@ static acpi_status
736ec_parse_device(acpi_handle handle, u32 Level, void *context, void **retval) 736ec_parse_device(acpi_handle handle, u32 Level, void *context, void **retval)
737{ 737{
738 acpi_status status; 738 acpi_status status;
739 unsigned long long tmp; 739 unsigned long long tmp = 0;
740 740
741 struct acpi_ec *ec = context; 741 struct acpi_ec *ec = context;
742 status = acpi_walk_resources(handle, METHOD_NAME__CRS, 742 status = acpi_walk_resources(handle, METHOD_NAME__CRS,
@@ -751,6 +751,7 @@ ec_parse_device(acpi_handle handle, u32 Level, void *context, void **retval)
751 return status; 751 return status;
752 ec->gpe = tmp; 752 ec->gpe = tmp;
753 /* Use the global lock for all EC transactions? */ 753 /* Use the global lock for all EC transactions? */
754 tmp = 0;
754 acpi_evaluate_integer(handle, "_GLK", NULL, &tmp); 755 acpi_evaluate_integer(handle, "_GLK", NULL, &tmp);
755 ec->global_lock = tmp; 756 ec->global_lock = tmp;
756 ec->handle = handle; 757 ec->handle = handle;