commit | 3a4cbc190643d0c6f7ca36a84af8367947f558c7 | [log] [tgz] |
---|---|---|
author | Yijing Wang <wangyijing@huawei.com> | Wed Nov 20 17:28:23 2013 +0800 |
committer | Guenter Roeck <linux@roeck-us.net> | Wed Nov 20 08:31:01 2013 -0800 |
tree | c64260637872287617d9cfaf962b975730d4ec87 | |
parent | cc76dee17fc996cf23c3cebe543a2d1ea36aa89e [diff] |
hwmon: (acpi_power_meter) Fix acpi_bus_get_device() return value check Since acpi_bus_get_device() returns plain int and not acpi_status, ACPI_FAILURE() should not be used for checking its return value. Fix that. Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>