Commit f266c11b authored by Rafael J. Wysocki's avatar Rafael J. Wysocki Committed by Joerg Roedel

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: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/1807113.tdWV9SEqCh@kreacherSigned-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 754e0b0e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment