ACPI / bus: Move duplicate code to a separate new function
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 1 Aug 2015 00:39:43 +0000 (02:39 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 6 Aug 2015 01:11:47 +0000 (03:11 +0200)
After merging commit 712e960f0ee9 (ACPI / PM: Attach ACPI power
domain only once) with commit 1dcc3d3362b0 (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: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org>
drivers/acpi/bus.c

Simple merge