ACPI / scan: Simplify acpi_match_device()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 10 Apr 2015 14:07:38 +0000 (16:07 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 10 Apr 2015 14:07:38 +0000 (16:07 +0200)
commite1acdeb0e7707f4220aa14ad6739102ba26e07c0
tree0e490a9700e90f3c8fbb5f1e46b1d24b71649737
parent54fe9ce385d499fe5a2bb0c68f092c97dad9365c
ACPI / scan: Simplify acpi_match_device()

Redefine acpi_companion_match() to return an ACPI device object
pointer instead of a bool and use it to remove some redundant code
from acpi_match_device().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/acpi/scan.c