Skip to content
Commit e91a398c authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

ACPI / bus: Move duplicate code to a separate new function



After merging commit 712e960f (ACPI / PM: Attach ACPI power
domain only once) with commit 1dcc3d33 (ACPI / bus: Move ACPI
bus type registration) there is some duplicate code in
acpi_device_is_first_physical_node() and acpi_companion_match()
that can be moved to a separate routine and called from both
places.

Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: default avatarHanjun Guo <hanjun.guo@linaro.org>
parent 50ba2247
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment