Skip to content

Commit 45f5671

Browse files
raagjadavrafaeljw
authored andcommitted
ACPI: x86: use acpi_dev_uid_match() for matching _UID
Convert manual _UID references to use the standard ACPI helper. Signed-off-by: Raag Jadav <[email protected]> Reviewed-by: Mika Westerberg <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 3a3cc54 commit 45f5671

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/acpi/x86/utils.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ bool acpi_device_override_status(struct acpi_device *adev, unsigned long long *s
184184
if (acpi_match_device_ids(adev, override_status_ids[i].hid))
185185
continue;
186186

187-
if (!adev->pnp.unique_id ||
188-
strcmp(adev->pnp.unique_id, override_status_ids[i].uid))
187+
if (!acpi_dev_uid_match(adev, override_status_ids[i].uid))
189188
continue;
190189
}
191190

0 commit comments

Comments
 (0)