From 10e478c4cf31e09326065e1126222b49d01eb6fa Mon Sep 17 00:00:00 2001 From: Felix Held Date: Mon, 23 Oct 2023 21:26:54 +0200 Subject: [PATCH] include/device/device: drop HAVE_ACPI_TABLES guards There's no need to remove the corresponding fields from the device_operations struct when HAVE_ACPI_TABLES isn't selected. Signed-off-by: Felix Held Change-Id: Iac20b6cdc44a5280566ee7003a5ef6fbe913b099 Reviewed-on: https://review.coreboot.org/c/coreboot/+/78990 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) --- src/include/device/device.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/include/device/device.h b/src/include/device/device.h index 07b71ece0a..113969ca1d 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -53,7 +53,6 @@ struct device_operations { unsigned long *current); void (*get_smbios_strings)(struct device *dev, struct smbios_type11 *t); -#if CONFIG(HAVE_ACPI_TABLES) unsigned long (*write_acpi_tables)(const struct device *dev, unsigned long start, struct acpi_rsdp *rsdp); void (*acpi_fill_ssdt)(const struct device *dev); @@ -61,7 +60,7 @@ struct device_operations { const char *(*acpi_name)(const struct device *dev); /* Returns the optional _HID (Hardware ID) */ const char *(*acpi_hid)(const struct device *dev); -#endif + const struct pci_operations *ops_pci; const struct i2c_bus_operations *ops_i2c_bus; const struct spi_bus_operations *ops_spi_bus;