From fe9542b8b53cd72cd6304278052a3d7db3f6c824 Mon Sep 17 00:00:00 2001 From: "Rafael J. Wysocki" Date: Thu, 11 Dec 2025 15:16:37 +0100 Subject: [PATCH] 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 Link: https://patch.msgid.link/2397353.ElGaqSPkdT@rafael.j.wysocki --- drivers/acpi/scan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 7e4dbec8f77c3..a67d1a2d0a2ac 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -2754,6 +2754,8 @@ int acpi_bus_register_early_device(int type) if (result) return result; + acpi_default_enumeration(device); + device->flags.match_driver = true; return device_attach(&device->dev); } -- 2.47.3