ACPI / scan: Fix acpi_bus_get_device() check in acpi_match_device()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 31 Jan 2013 19:54:05 +0000 (20:54 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 31 Jan 2013 19:54:05 +0000 (20:54 +0100)
commit0613e1f7fd98a0cef2a7add1368a87cdd86a1106
treefd8c7d1c3a054d15d11ae94ca5dcf4be8b169f17
parentc511cc1990bbc263c3f8a2ef4d7d613a3b40ffe2
ACPI / scan: Fix acpi_bus_get_device() check in acpi_match_device()

Since acpi_bus_get_device() returns int and not acpi_status, change
acpi_match_device() so that it doesn't apply ACPI_FAILURE() to the
return value of acpi_bus_get_device().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/acpi/scan.c