[PATCH 1/2] ACPI / EC: Cleanup boot EC code using acpi_ec_alloc()

2016-06-21 Thread Lv Zheng
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 --- drivers/acpi/ec.c |

[PATCH 1/2] ACPI / EC: Cleanup boot EC code using acpi_ec_alloc()

2016-06-21 Thread Lv Zheng
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 --- drivers/acpi/ec.c | 85