ACPI / PM: Do not apply ACPI_SUCCESS() to acpi_bus_get_device() result
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 16 Dec 2012 22:28:53 +0000 (23:28 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Jan 2013 12:10:21 +0000 (13:10 +0100)
commit5cc36c724eb60b5e5457807f3230e5bb5454e4d0
treed2e72538d0c1e3865c2703cdb6d223758eecf571
parent8611ea5f5d708d60ab29ed3cdb33e67168404fc0
ACPI / PM: Do not apply ACPI_SUCCESS() to acpi_bus_get_device() result

Since the return value of acpi_bus_get_device() is not of type
acpi_status, ACPI_SUCCESS() should not be used for checking its
return value.  Fix that.

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