From 8b036e14841cdbb8a8f8f6465bad7ed379accda3 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 8 Dec 2022 17:29:33 +0100 Subject: device/device.h: Drop acpi_inject_dsdt This is now unused in the tree and filling SSDT should always be used. TEST=intel/archercity CRB Signed-off-by: Arthur Heymans Change-Id: Iffefc865901b15fa299931b6ed4c27a9e3a1c330 Reviewed-on: https://review.coreboot.org/c/coreboot/+/78334 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Patrick Rudolph --- src/acpi/acpi.c | 3 --- src/include/device/device.h | 1 - 2 files changed, 4 deletions(-) diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c index 0bd82cbdfb..0e4798c448 100644 --- a/src/acpi/acpi.c +++ b/src/acpi/acpi.c @@ -1362,9 +1362,6 @@ static void acpi_create_dsdt(acpi_header_t *header, void *dsdt_file_arg) if (CONFIG(CHROMEOS_NVS)) acpi_fill_cnvs(); - for (const struct device *dev = all_devices; dev; dev = dev->next) - if (dev->ops && dev->ops->acpi_inject_dsdt) - dev->ops->acpi_inject_dsdt(dev); current = (unsigned long)acpigen_get_current(); memcpy((char *)current, (char *)dsdt_file + sizeof(acpi_header_t), diff --git a/src/include/device/device.h b/src/include/device/device.h index 13870513e1..cd0999ac94 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -56,7 +56,6 @@ struct device_operations { unsigned long (*write_acpi_tables)(const struct device *dev, unsigned long start, struct acpi_rsdp *rsdp); void (*acpi_fill_ssdt)(const struct device *dev); - void (*acpi_inject_dsdt)(const struct device *dev); const char *(*acpi_name)(const struct device *dev); /* Returns the optional _HID (Hardware ID) */ const char *(*acpi_hid)(const struct device *dev); -- cgit v1.2.3