Skip to content

Commit bb3dcf0

Browse files
raagjadavrafaeljw
authored andcommitted
perf: qcom: use acpi_device_uid() for fetching _UID
Convert manual _UID references to use the standard ACPI helper. Signed-off-by: Raag Jadav <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 5f70fd1 commit bb3dcf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/perf/qcom_l3_pmu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,8 +742,8 @@ static int qcom_l3_cache_pmu_probe(struct platform_device *pdev)
742742

743743
l3pmu = devm_kzalloc(&pdev->dev, sizeof(*l3pmu), GFP_KERNEL);
744744
name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "l3cache_%s_%s",
745-
acpi_dev_parent(acpi_dev)->pnp.unique_id,
746-
acpi_dev->pnp.unique_id);
745+
acpi_device_uid(acpi_dev_parent(acpi_dev)),
746+
acpi_device_uid(acpi_dev));
747747
if (!l3pmu || !name)
748748
return -ENOMEM;
749749

0 commit comments

Comments
 (0)