From: Rafael J. Wysocki Date: Tue, 1 Feb 2022 19:12:30 +0000 (+0100) Subject: thunderbolt: Replace acpi_bus_get_device() X-Git-Tag: v6.1-rc5~1706^2~62^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f7b571becf3731dfa9aa50bed420e0c988e511d;p=platform%2Fkernel%2Flinux-starfive.git thunderbolt: 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 Signed-off-by: Mika Westerberg --- diff --git a/drivers/thunderbolt/acpi.c b/drivers/thunderbolt/acpi.c index 79b5abf..c89daac 100644 --- a/drivers/thunderbolt/acpi.c +++ b/drivers/thunderbolt/acpi.c @@ -14,15 +14,15 @@ static acpi_status tb_acpi_add_link(acpi_handle handle, u32 level, void *data, void **return_value) { + struct acpi_device *adev = acpi_fetch_acpi_dev(handle); struct fwnode_reference_args args; struct fwnode_handle *fwnode; struct tb_nhi *nhi = data; - struct acpi_device *adev; struct pci_dev *pdev; struct device *dev; int ret; - if (acpi_bus_get_device(handle, &adev)) + if (!adev) return AE_OK; fwnode = acpi_fwnode_handle(adev);