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)
commit61a3c78d991c7f5e189e82fa54ddaa9d514544a2
tree248b5020362714a0859f24a40d51721f8705eff8
parent87440d70a4bf2e6196496cba75a757a6367d8b04
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