Commit bb3dcf0c authored by Raag Jadav's avatar Raag Jadav Committed by Rafael J. Wysocki
Browse files

perf: qcom: use acpi_device_uid() for fetching _UID



Convert manual _UID references to use the standard ACPI helper.

Signed-off-by: default avatarRaag Jadav <raag.jadav@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 5f70fd18
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -742,8 +742,8 @@ static int qcom_l3_cache_pmu_probe(struct platform_device *pdev)

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