atomic_t query_pending;
        atomic_t event_count;
        wait_queue_head_t wait;
-} *ec_ecdt;
+} *boot_ec;
 
 /* External interfaces use first EC only, so remember */
 static struct acpi_device *first_ec;
        }
 
        /* Check if we found the boot EC */
-       if (ec_ecdt) {
-               if (ec_ecdt->gpe == ec->gpe) {
+       if (boot_ec) {
+               if (boot_ec->gpe == ec->gpe) {
                        /* We might have incorrect info for GL at boot time */
-                       mutex_lock(&ec_ecdt->lock);
-                       ec_ecdt->global_lock = ec->global_lock;
-                       mutex_unlock(&ec_ecdt->lock);
+                       mutex_lock(&boot_ec->lock);
+                       boot_ec->global_lock = ec->global_lock;
+                       mutex_unlock(&boot_ec->lock);
                        kfree(ec);
-                       ec = ec_ecdt;
+                       ec = boot_ec;
                }
        }
-
        ec->handle = device->handle;
-
        acpi_driver_data(device) = ec;
-
        if (!first_ec)
                first_ec = device;
 
                first_ec = NULL;
 
        /* Don't touch boot EC */
-       if (ec_ecdt != ec)
+       if (boot_ec != ec)
                kfree(ec);
 
        return 0;
                          ec->gpe, ec->command_addr, ec->data_addr));
 
        /* Boot EC is already working */
-       if (ec == ec_ecdt)
+       if (ec == boot_ec)
                return 0;
 
        return ec_install_handlers(ec);
                return -EINVAL;
 
        /* Don't touch boot EC */
-       if (ec == ec_ecdt)
+       if (ec == boot_ec)
                return 0;
 
        status = acpi_remove_address_space_handler(ec->handle,
        acpi_status status;
        struct acpi_table_ecdt *ecdt_ptr;
 
-       ec_ecdt = make_acpi_ec();
-       if (!ec_ecdt)
+       boot_ec = make_acpi_ec();
+       if (!boot_ec)
                return -ENOMEM;
        /*
         * Generate a boot ec context
 
        ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Found ECDT"));
 
-       ec_ecdt->command_addr = ecdt_ptr->control.address;
-       ec_ecdt->data_addr = ecdt_ptr->data.address;
-       ec_ecdt->gpe = ecdt_ptr->gpe;
-       ec_ecdt->uid = ecdt_ptr->uid;
-       ec_ecdt->handle = ACPI_ROOT_OBJECT;
+       boot_ec->command_addr = ecdt_ptr->control.address;
+       boot_ec->data_addr = ecdt_ptr->data.address;
+       boot_ec->gpe = ecdt_ptr->gpe;
+       boot_ec->uid = ecdt_ptr->uid;
+       boot_ec->handle = ACPI_ROOT_OBJECT;
 
-       ret = ec_install_handlers(ec_ecdt);
+       ret = ec_install_handlers(boot_ec);
        if (!ret)
                return 0;
       error:
-       kfree(ec_ecdt);
-       ec_ecdt = NULL;
+       kfree(boot_ec);
+       boot_ec = NULL;
 
        return -ENODEV;
 }