]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
iommu/vtd: Replace acpi_bus_get_device()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 1 Feb 2022 18:11:40 +0000 (19:11 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 14 Feb 2022 11:59:45 +0000 (12:59 +0100)
Replace acpi_bus_get_device() that is going to be dropped with
acpi_fetch_acpi_dev().

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/1807113.tdWV9SEqCh@kreacher
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/dmar.c

index 915bff76fe96585963a1a27ce3e38ba0a8c2b0a3..6d10be50ec30e8fc0381926540d279bd7409c236 100644 (file)
@@ -789,7 +789,8 @@ static int __init dmar_acpi_dev_scope_init(void)
                                       andd->device_name);
                                continue;
                        }
-                       if (acpi_bus_get_device(h, &adev)) {
+                       adev = acpi_fetch_acpi_dev(h);
+                       if (!adev) {
                                pr_err("Failed to get device for ACPI object %s\n",
                                       andd->device_name);
                                continue;