]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9bd61507e325cdb925b3c64d2aeaa900dac23265
tree618209a72c4cdbeeefd83350bfb88c483d9add80
parent590e2059f566a1583a04e5c4eb6d02af6e759112
ACPI / bus: Move duplicate code to a separate new function

After merging commit 612922b98e2b (ACPI / PM: Attach ACPI power
domain only once) with commit f39513b4bcc5 (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