Message ID | 2223516.ElGaqSPkdT@kreacher (mailing list archive) |
---|---|
State | Deferred, archived |
Headers | show |
Series | ACPI: scan: Honor certain device identification rules | expand |
Index: linux-pm/drivers/acpi/scan.c =================================================================== --- linux-pm.orig/drivers/acpi/scan.c +++ linux-pm/drivers/acpi/scan.c @@ -1343,11 +1343,11 @@ static void acpi_set_pnp_ids(acpi_handle for (i = 0; i < cid_list->count; i++) acpi_add_id(pnp, cid_list->ids[i].string); } - } - if (info->valid & ACPI_VALID_ADR) { + } else if (info->valid & ACPI_VALID_ADR) { pnp->bus_address = info->address; pnp->type.bus_address = 1; } + if (info->valid & ACPI_VALID_UID) pnp->unique_id = kstrdup(info->unique_id.string, GFP_KERNEL);