]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (acpi_power_meter) Fix acpi_bus_get_device() return value check
authorYijing Wang <wangyijing@huawei.com>
Wed, 20 Nov 2013 09:28:23 +0000 (17:28 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 20 Nov 2013 16:31:01 +0000 (08:31 -0800)
commitc3429927524da5188b2717eee32c4e6e0d2afcd6
treec64260637872287617d9cfaf962b975730d4ec87
parent4d999d8056ae5cd27971d8d8fd1aa932e66590f9
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>
drivers/hwmon/acpi_power_meter.c