From: Rafael J. Wysocki Date: Sat, 1 Aug 2015 00:39:43 +0000 (+0200) Subject: ACPI / bus: Move duplicate code to a separate new function X-Git-Tag: omap-for-v4.3/fixes-rc1~121^2~7^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e91a398c31cef2d51786642e372c503cd43fba90;p=pandora-kernel.git ACPI / bus: Move duplicate code to a separate new function 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 Reviewed-by: Mika Westerberg Reviewed-by: Hanjun Guo --- Reading git-diff-tree failed