From: Rafael J. Wysocki Date: Wed, 26 Jan 2022 19:53:38 +0000 (+0100) Subject: USB: ACPI: Replace acpi_bus_get_device() X-Git-Tag: microblaze-v5.19~102^2~134 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=c067688ae204ae4f0ad5044fe7345350fc6cd1b4;p=linux-2.6-microblaze.git USB: ACPI: 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 Link: https://lore.kernel.org/r/1899393.PYKUYFuaPT@kreacher Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/usb-acpi.c b/drivers/usb/core/usb-acpi.c index 50b2fc7fcc0e..bb1da35eb891 100644 --- a/drivers/usb/core/usb-acpi.c +++ b/drivers/usb/core/usb-acpi.c @@ -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; }