ACPI: bus: Eliminate acpi_bus_get_device()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 5 Apr 2022 17:49:26 +0000 (19:49 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 5 Apr 2022 17:49:26 +0000 (19:49 +0200)
commitac2a3feefad549814f5e7cca30be07a255c8494a
treeaf591501a1c66eb25c560f9daadf23882f00aa51
parent3123109284176b1532874591f7c81f3837bbdc17
ACPI: bus: Eliminate acpi_bus_get_device()

Replace the last instance of acpi_bus_get_device(), added recently
by commit 87e59b36e5e2 ("spi: Support selection of the index of the
ACPI Spi Resource before alloc"), with acpi_fetch_acpi_dev() and
finally drop acpi_bus_get_device() that has no more users.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Mark Brown <broonie@kernel.org>
drivers/acpi/scan.c
drivers/spi/spi.c
include/acpi/acpi_bus.h