]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6e990c5bd4ef55ef9395a96ee71eb43425561d9e
treeaf591501a1c66eb25c560f9daadf23882f00aa51
parent6d94017b7b59bab528be97be158d0d602982e3a6
ACPI: bus: Eliminate acpi_bus_get_device()

Replace the last instance of acpi_bus_get_device(), added recently
by commit 044eb32190a3 ("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