Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iommu/vtd: Replace acpi_bus_get_device()

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>

authored by

Rafael J. Wysocki and committed by
Joerg Roedel
f266c11b 754e0b0e

+2 -1
+2 -1
drivers/iommu/intel/dmar.c
··· 789 789 andd->device_name); 790 790 continue; 791 791 } 792 - if (acpi_bus_get_device(h, &adev)) { 792 + adev = acpi_fetch_acpi_dev(h); 793 + if (!adev) { 793 794 pr_err("Failed to get device for ACPI object %s\n", 794 795 andd->device_name); 795 796 continue;