Message ID | 13529563.7la0fBEcfz@kreacher |
---|---|
State | New |
Headers | show |
Series | None | expand |
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 4ed0c6155d3f..920a08c01ab6 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -1614,7 +1614,8 @@ static int acpi_ec_add(struct acpi_device *device) strcpy(acpi_device_name(device), ACPI_EC_DEVICE_NAME); strcpy(acpi_device_class(device), ACPI_EC_CLASS); - if (!strcmp(acpi_device_hid(device), ACPI_ECDT_HID)) { + if ((boot_ec && boot_ec->handle == device->handle) || + !strcmp(acpi_device_hid(device), ACPI_ECDT_HID)) { /* Fast path: this device corresponds to the boot EC. */ ec = boot_ec; } else {