thunderbolt: Replace acpi_bus_get_device()
Subsystems (3)
PATCH 1/1 thunderbolt: 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/thunderbolt/acpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/thunderbolt/acpi.c +2 -2
@@ -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);
Quoted 8 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
Replace
acpi_bus_get_device()that is going to be dropped withacpi_fetch_acpi_dev().No intentional functional impact.
Signed-off-by Rafael J. Wysocki <[email protected]>
Let me know if you want me to pick this up.
Rafael J. Wysocki
maintainerQuoted 7 lines · Mika Westerberg
Quoted 5 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
Replace
acpi_bus_get_device()that is going to be dropped withacpi_fetch_acpi_dev().
Quoted 7 lines
Quoted 3 lines
No intentional functional impact.
Signed-off-by Rafael J. Wysocki <[email protected]>Acked-by Mika Westerberg <[email protected]>Let me know if you want me to pick this up.
Yes, please, if you can.
Mika Westerberg
AppliedQuoted 11 lines · Rafael J. Wysocki
Quoted 9 lines · Mika Westerberg
Quoted 7 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
Replace
acpi_bus_get_device()that is going to be dropped withacpi_fetch_acpi_dev().No intentional functional impact.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Rafael J. Wysocki <[email protected]>Acked-by Mika Westerberg <[email protected]>Let me know if you want me to pick this up.
Yes, please, if you can.
Applied to thunderbolt.git/next, thanks!