diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-02-01 10:59:42 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-02-01 11:45:53 +0100 |
commit | c746b6b67e168f27b04563b0b429aa3e8be27011 (patch) | |
tree | bd85c72002be6b6294af85ed14b7595e19b33806 /drivers/net/dsa/microchip/ksz_common.c | |
parent | 1568426c491ad7e17a8d9e0e4d3397ee107af899 (diff) |
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>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_common.c')
0 files changed, 0 insertions, 0 deletions