OSDN Git Service

ACPI: EC: Make acpi_ec_dsdt_probe() more straightforward
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 1 Feb 2019 09:59:42 +0000 (10:59 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 1 Feb 2019 10:45:53 +0000 (11:45 +0100)
commitc746b6b67e168f27b04563b0b429aa3e8be27011
treebd85c72002be6b6294af85ed14b7595e19b33806
parent1568426c491ad7e17a8d9e0e4d3397ee107af899
ACPI: EC: Make acpi_ec_dsdt_probe() more straightforward

Since acpi_ec_dsdt_probe() returns early if boot_ec is set, it is
always unset when that function calls acpi_config_boot_ec() (passing
ec->handle as the handle argument to it).  Thus it is not really
useful to call acpi_config_boot_ec() at that point.  It is sufficient to
call acpi_ec_setup() directly and (if that is successful) set boot_ec,
so make acpi_ec_dsdt_probe() do that and avoid some pointless checks
in acpi_config_boot_ec().

No intentional functional impact except for a changed message.

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