OSDN Git Service

ACPI: EC: Eliminate acpi_config_boot_ec()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 1 Feb 2019 11:55:31 +0000 (12:55 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 1 Feb 2019 11:55:31 +0000 (12:55 +0100)
commitd2c62aef3876353134b2901fcdd91cda09d98131
treee40ce476df57ccb746127ddcc48ef7aed3751687
parentc746b6b67e168f27b04563b0b429aa3e8be27011
ACPI: EC: Eliminate acpi_config_boot_ec()

Notice that acpi_ec_add() calls acpi_config_boot_ec() when it finds
that the device object passed to it represents a "boot" EC, but in
that case the ec pointer passed to acpi_config_boot_ec() is guaranteed
to be equal to boot_ec and ec->handle is passed as the handle
argument to it, so acpi_config_boot_ec() really only calls
acpi_ec_setup() and prints a message.

Avoid the pointless checks in acpi_config_boot_ec() by calling
acpi_ec_setup() directly and print the message separately.

With the above changes in place, there are no users of
acpi_config_boot_ec(), so drop it.

No intentional functional impact except for a changed message.

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