UPSTREAM: 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.
(cherry picked from commit ab8a094cf05fbdbf559465f57c2f7ce250612bac)
Original-Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Original-Change-Id: Ifa24d1fd211c263b788046e63de3dd5c54cba801
Original-Reviewed-on: https://review.coreboot.org/c/coreboot/+/79092
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
GitOrigin-RevId: ab8a094cf05fbdbf559465f57c2f7ce250612bac
Change-Id: I1c25c91e819b0c717a0debbc8b765b2b09be229b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/coreboot/+/5042287
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Reviewed-by: Jonathon Murphy <jpmurphy@google.com>
Commit-Queue: Jonathon Murphy <jpmurphy@google.com>
(cherry picked from commit 6ae231f413686492f7993034be6311cb795af844)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/coreboot/+/5045911
Reviewed-by: Karthikeyan Ramasubramanian <kramasub@google.com>
Tested-by: Jonathon Murphy <jpmurphy@google.com>
diff --git a/src/include/device/device.h b/src/include/device/device.h
index 68e2622..07b71ec 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -48,11 +48,11 @@
void (*enable)(struct device *dev);
void (*vga_disable)(struct device *dev);
void (*reset_bus)(struct bus *bus);
-#if CONFIG(GENERATE_SMBIOS_TABLES)
+
int (*get_smbios_data)(struct device *dev, int *handle,
unsigned long *current);
void (*get_smbios_strings)(struct device *dev, struct smbios_type11 *t);
-#endif
+
#if CONFIG(HAVE_ACPI_TABLES)
unsigned long (*write_acpi_tables)(const struct device *dev,
unsigned long start, struct acpi_rsdp *rsdp);