ACPI / hotplug: Fix acpi_bus_get_device() return value check
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Nov 2013 23:54:00 +0000 (00:54 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 19 Nov 2013 00:02:22 +0000 (01:02 +0100)
commit5beaee4f195d0297473da9a45459050b561e10cf
tree2d72e0f132bdae893097d60a8018c6678f79cd2a
parent7b98118aaa5d75644c48f41fc5d0cc181e478383
ACPI / hotplug: Fix acpi_bus_get_device() return value check

Since acpi_bus_get_device() returns a plain int and not acpi_status,
ACPI_FAILURE() should not be used for checking its return value.  Fix
that.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
drivers/acpi/scan.c