]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: glue: Use acpi_device_adr() in acpi_find_child_device()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 27 Oct 2021 16:59:06 +0000 (18:59 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 28 Oct 2021 14:53:24 +0000 (16:53 +0200)
commit58f69bc1167bce777ecb334fe8078ee555f1bb45
tree248b5020362714a0859f24a40d51721f8705eff8
parentd8ce08d93cd18c2c2631a9676c3cd0100e24403b
ACPI: glue: Use acpi_device_adr() in acpi_find_child_device()

Instead of evaluating _ADR in acpi_find_child_device(), use the
observation that it has already been evaluated and the value returned
by it has been stored in the pnp.type.bus_address field of the ACPI
device object at hand.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/glue.c