Commit 60e04a5c authored by Len Brown's avatar Len Brown

Pull ec into release branch

parents 61fb46c5 ff2fc3e9
...@@ -990,7 +990,6 @@ static int acpi_ec_poll_add(struct acpi_device *device) ...@@ -990,7 +990,6 @@ static int acpi_ec_poll_add(struct acpi_device *device)
int result = 0; int result = 0;
acpi_status status = AE_OK; acpi_status status = AE_OK;
union acpi_ec *ec = NULL; union acpi_ec *ec = NULL;
unsigned long uid;
ACPI_FUNCTION_TRACE("acpi_ec_add"); ACPI_FUNCTION_TRACE("acpi_ec_add");
...@@ -1013,10 +1012,9 @@ static int acpi_ec_poll_add(struct acpi_device *device) ...@@ -1013,10 +1012,9 @@ static int acpi_ec_poll_add(struct acpi_device *device)
acpi_evaluate_integer(ec->common.handle, "_GLK", NULL, acpi_evaluate_integer(ec->common.handle, "_GLK", NULL,
&ec->common.global_lock); &ec->common.global_lock);
/* If our UID matches the UID for the ECDT-enumerated EC, /* XXX we don't test uids, because on some boxes ecdt uid = 0, see:
we now have the *real* EC info, so kill the makeshift one. */ http://bugzilla.kernel.org/show_bug.cgi?id=6111 */
acpi_evaluate_integer(ec->common.handle, "_UID", NULL, &uid); if (ec_ecdt) {
if (ec_ecdt && ec_ecdt->common.uid == uid) {
acpi_remove_address_space_handler(ACPI_ROOT_OBJECT, acpi_remove_address_space_handler(ACPI_ROOT_OBJECT,
ACPI_ADR_SPACE_EC, ACPI_ADR_SPACE_EC,
&acpi_ec_space_handler); &acpi_ec_space_handler);
...@@ -1061,7 +1059,6 @@ static int acpi_ec_intr_add(struct acpi_device *device) ...@@ -1061,7 +1059,6 @@ static int acpi_ec_intr_add(struct acpi_device *device)
int result = 0; int result = 0;
acpi_status status = AE_OK; acpi_status status = AE_OK;
union acpi_ec *ec = NULL; union acpi_ec *ec = NULL;
unsigned long uid;
ACPI_FUNCTION_TRACE("acpi_ec_add"); ACPI_FUNCTION_TRACE("acpi_ec_add");
...@@ -1087,10 +1084,9 @@ static int acpi_ec_intr_add(struct acpi_device *device) ...@@ -1087,10 +1084,9 @@ static int acpi_ec_intr_add(struct acpi_device *device)
acpi_evaluate_integer(ec->common.handle, "_GLK", NULL, acpi_evaluate_integer(ec->common.handle, "_GLK", NULL,
&ec->common.global_lock); &ec->common.global_lock);
/* If our UID matches the UID for the ECDT-enumerated EC, /* XXX we don't test uids, because on some boxes ecdt uid = 0, see:
we now have the *real* EC info, so kill the makeshift one. */ http://bugzilla.kernel.org/show_bug.cgi?id=6111 */
acpi_evaluate_integer(ec->common.handle, "_UID", NULL, &uid); if (ec_ecdt) {
if (ec_ecdt && ec_ecdt->common.uid == uid) {
acpi_remove_address_space_handler(ACPI_ROOT_OBJECT, acpi_remove_address_space_handler(ACPI_ROOT_OBJECT,
ACPI_ADR_SPACE_EC, ACPI_ADR_SPACE_EC,
&acpi_ec_space_handler); &acpi_ec_space_handler);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment