USB: ACPI: Replace acpi_bus_get_device()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 26 Jan 2022 19:53:38 +0000 (20:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Jan 2022 13:24:23 +0000 (14:24 +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>
Link: https://lore.kernel.org/r/1899393.PYKUYFuaPT@kreacher
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/usb-acpi.c

index 50b2fc7fcc0e32576d4527ee08bb861ad97537b5..bb1da35eb891e69b8b67598a93992053c42e0b3c 100644 (file)
@@ -166,7 +166,7 @@ usb_acpi_get_companion_for_port(struct usb_port *port_dev)
                if (!parent_handle)
                        return NULL;
 
-               acpi_bus_get_device(parent_handle, &adev);
+               adev = acpi_fetch_acpi_dev(parent_handle);
                port1 = port_dev->portnum;
        }