ACPI: bus: Introduce acpi_dev_get() and reuse it in ACPI code
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Mon, 12 Apr 2021 22:23:58 +0000 (01:23 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 13 Apr 2021 13:41:11 +0000 (15:41 +0200)
commit4cbaba4e3e4a8a00ed90193ae519c52ba01ea756
treeb4d7680c20cb13039e270c0d8d4245b55e52761d
parent020505581119d191ee8da478783e2465d7f5fa8e
ACPI: bus: Introduce acpi_dev_get() and reuse it in ACPI code

Introduce acpi_dev_get() to have a symmetrical API with acpi_dev_put()
and reuse both in ACPI code in drivers/acpi/.

While at it, use acpi_bus_put_acpi_device() in one place instead of
the above.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/device_sysfs.c
drivers/acpi/glue.c
drivers/acpi/scan.c
include/acpi/acpi_bus.h