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 <rafael.j.wysocki@intel.com> Link: https://lore.kernel.org/r/1899393.PYKUYFuaPT@kreacher Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
60c250a98d
commit
c067688ae2
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user