ACPI / EC: Add reference counting for query handlers
authorLv Zheng <lv.zheng@intel.com>
Wed, 14 Jan 2015 11:28:28 +0000 (19:28 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Jan 2015 21:06:48 +0000 (22:06 +0100)
commit01305d4139cd345aa9f64cecfd7fc7b237e1444e
tree1e86972559a9927f8fbbbcfba8f0c497ab1cb922
parent0c78808f51d11564a29728091e87b80d6e54d499
ACPI / EC: Add reference counting for query handlers

This patch adds reference counting for query handlers in order to eliminate
kmalloc()/kfree() usage.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Tested-by: Steffen Weber <steffen.weber@gmail.com>
Tested-by: Ortwin Glück <odi@odi.ch>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c