Skip to content

Commit fe9542b

Browse files
committed
ACPI: EC: Register a platform device for ECDT EC
To facilitate converting the ACPI EC driver into a platform one, modify acpi_bus_register_early_device(), used by acpi_ec_ecdt_start() for creating a struct acpi_device to represent the "early" EC based on the ECDT ACPI table, to carry out the default ACPI enumeration for the given device which will cause a platform device to be registered for it. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://patch.msgid.link/2397353.ElGaqSPkdT@rafael.j.wysocki
1 parent 6e35ab5 commit fe9542b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/acpi/scan.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2754,6 +2754,8 @@ int acpi_bus_register_early_device(int type)
27542754
if (result)
27552755
return result;
27562756

2757+
acpi_default_enumeration(device);
2758+
27572759
device->flags.match_driver = true;
27582760
return device_attach(&device->dev);
27592761
}

0 commit comments

Comments
 (0)