ACPI: introduce a function to find the first physical device

Factor out the code that finds the first physical device
of a given ACPI device.  It is used in several places.

Signed-off-by: Aleksey Makarov <aleksey.makarov@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
Aleksey Makarov 2016-02-16 15:52:38 +03:00 • committed by Rafael J. Wysocki
commit 3b95bd1605
3 changed files with 23 additions and 23 deletions