ACPI / EC: Cleanup boot EC code using acpi_ec_alloc()
authorLv Zheng <lv.zheng@intel.com>
Tue, 21 Jun 2016 09:42:05 +0000 (17:42 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 4 Jul 2016 13:30:06 +0000 (15:30 +0200)
commitfd6231e785f1287446fc3c8430dba0ae1119d522
tree447002180ae1b8bd616bf05222df41de0a19e0c4
parenta99cde438de0c4c0cecc1d1af1a55a75b10bfdef
ACPI / EC: Cleanup boot EC code using acpi_ec_alloc()

Failure handling of the boot EC code is not tidy. This patch cleans
them up with acpi_ec_alloc().

This patch also changes acpi_ec_dsdt_probe(), always switches the
boot EC from the ECDT one to the DSDT one in this function.

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