include/device/device: drop GENERATE_SMBIOS_TABLES guards

There's no need to remove the corresponding fields from the
device_operations struct when GENERATE_SMBIOS_TABLES isn't selected.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Ifa24d1fd211c263b788046e63de3dd5c54cba801
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79092
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
Felix Held 2023-11-16 13:38:14 +01:00
parent 823f95e8a3
commit ab8a094cf0
1 changed files with 2 additions and 2 deletions

View File

@ -48,11 +48,11 @@ struct device_operations {
void (*enable)(struct device *dev); void (*enable)(struct device *dev);
void (*vga_disable)(struct device *dev); void (*vga_disable)(struct device *dev);
void (*reset_bus)(struct bus *bus); void (*reset_bus)(struct bus *bus);
#if CONFIG(GENERATE_SMBIOS_TABLES)
int (*get_smbios_data)(struct device *dev, int *handle, int (*get_smbios_data)(struct device *dev, int *handle,
unsigned long *current); unsigned long *current);
void (*get_smbios_strings)(struct device *dev, struct smbios_type11 *t); void (*get_smbios_strings)(struct device *dev, struct smbios_type11 *t);
#endif
#if CONFIG(HAVE_ACPI_TABLES) #if CONFIG(HAVE_ACPI_TABLES)
unsigned long (*write_acpi_tables)(const struct device *dev, unsigned long (*write_acpi_tables)(const struct device *dev,
unsigned long start, struct acpi_rsdp *rsdp); unsigned long start, struct acpi_rsdp *rsdp);