ACPI / EC: Fix returning values in acpi_ec_sync_query()
authorLv Zheng <lv.zheng@intel.com>
Wed, 14 Jan 2015 11:28:33 +0000 (19:28 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Jan 2015 21:06:49 +0000 (22:06 +0100)
commitc2cf5769fae1ce208ea00fa85298d1d19969300a
tree0b230fedd4f4b9fc870ac6dc6b33bbd0c568ec8c
parent01305d4139cd345aa9f64cecfd7fc7b237e1444e
ACPI / EC: Fix returning values in acpi_ec_sync_query()

The returning value of acpi_os_execute() is erroneously handled as errno.
This patch corrects it by returning EBUSY to indicate the work queue item
creation failure.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c