]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: EC: Use fast path in acpi_ec_add() for DSDT boot EC
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 2 Mar 2020 10:25:21 +0000 (11:25 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 2 Mar 2020 10:25:21 +0000 (11:25 +0100)
commite9e1a90808525279fe4f777f61c0c0fa0447a035
treebf0c5601af1f42bda1ee8cfc4741c0c86ee6e98e
parentee1df4a31c4fb33776cd526f177dcd2d11a35c24
ACPI: EC: Use fast path in acpi_ec_add() for DSDT boot EC

If the boot EC comes from the DSDT, its ACPI handle is equal to the
handle of a device object with the PNP0C09 device ID.  If that
device object is passed to acpi_ec_add(), it is not necessary to
allocate a new EC structure for it and parse it, because that has
been done already, so change the function to use the fast path in
that case.

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