aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/ec.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2008-10-22 23:33:29 -0400
committerLen Brown <len.brown@intel.com>2008-10-22 23:33:29 -0400
commit7674416db4ee3d43813dddb650364ca994755256 (patch)
tree1a4549823d7bdd892dc3b3b7b3fa9214216ac384 /drivers/acpi/ec.c
parent0ca9413c234aa5a49ffaf80e46b50721a752e45a (diff)
parent27663c5855b10af9ec67bc7dfba001426ba21222 (diff)
Merge branch 'ull' into test
Conflicts: drivers/acpi/bay.c drivers/acpi/dock.c drivers/ata/libata-acpi.c Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/ec.c')
-rw-r--r--drivers/acpi/ec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index 40fefba6264e..ef42316f89f5 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -736,6 +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 740
740 struct acpi_ec *ec = context; 741 struct acpi_ec *ec = context;
741 status = acpi_walk_resources(handle, METHOD_NAME__CRS, 742 status = acpi_walk_resources(handle, METHOD_NAME__CRS,
@@ -745,11 +746,13 @@ ec_parse_device(acpi_handle handle, u32 Level, void *context, void **retval)
745 746
746 /* Get GPE bit assignment (EC events). */ 747 /* Get GPE bit assignment (EC events). */
747 /* TODO: Add support for _GPE returning a package */ 748 /* TODO: Add support for _GPE returning a package */
748 status = acpi_evaluate_integer(handle, "_GPE", NULL, &ec->gpe); 749 status = acpi_evaluate_integer(handle, "_GPE", NULL, &tmp);
749 if (ACPI_FAILURE(status)) 750 if (ACPI_FAILURE(status))
750 return status; 751 return status;
752 ec->gpe = tmp;
751 /* Use the global lock for all EC transactions? */ 753 /* Use the global lock for all EC transactions? */
752 acpi_evaluate_integer(handle, "_GLK", NULL, &ec->global_lock); 754 acpi_evaluate_integer(handle, "_GLK", NULL, &tmp);
755 ec->global_lock = tmp;
753 ec->handle = handle; 756 ec->handle = handle;
754 return AE_CTRL_TERMINATE; 757 return AE_CTRL_TERMINATE;
755} 758}