diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-02-01 21:11:40 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2022-02-14 14:59:45 +0300 |
commit | f266c11bce79ea793a741e3da6dfe4d6007df8df (patch) | |
tree | 600afc63056253adc63776f6e30516b1239d4c5f /drivers/iommu/intel | |
parent | 754e0b0e35608ed5206d6a67a791563c631cec07 (diff) | |
download | linux-f266c11bce79ea793a741e3da6dfe4d6007df8df.tar.xz |
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>
Diffstat (limited to 'drivers/iommu/intel')
-rw-r--r-- | drivers/iommu/intel/dmar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iommu/intel/dmar.c b/drivers/iommu/intel/dmar.c index 915bff76fe96..6d10be50ec30 100644 --- a/drivers/iommu/intel/dmar.c +++ b/drivers/iommu/intel/dmar.c @@ -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; |