Skip to contentSkip to conversation

USB: ACPI: Replace acpi_bus_get_device()

PATCH Superseded Rafael J. Wysocki 1 participant 1 message Jan 26, 2022

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 USB: ACPI: Replace acpi_bus_get_device()

From: Rafael J. Wysocki <[email protected]>

Replace acpi_bus_get_device() that is going to be dropped with acpi_fetch_acpi_dev().

No intentional functional impact.

---
 drivers/usb/core/usb-acpi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/core/usb-acpi.c +1 -1
Index: linux-pm/drivers/usb/core/usb-acpi.c
===================================================================
@@ -166,7 +166,7 @@ usb_acpi_get_companion_for_port(struct u
 		if (!parent_handle)
 			return NULL;
 
-		acpi_bus_get_device(parent_handle, &adev);
+		adev = acpi_fetch_acpi_dev(parent_handle);
 		port1 = port_dev->portnum;
 	}