From 045251e4515686ffeff0fa0521cf90eaf32b4d7f Mon Sep 17 00:00:00 2001 From: Felix Held Date: Fri, 13 Oct 2023 21:33:55 +0200 Subject: soc/amd/common/data_fabric_helper: add pre-processor guards for ACPI Signed-off-by: Felix Held Change-Id: Iec6e05bbe9fad7d78002560b78169dc293294af6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/78341 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) Reviewed-by: Fred Reitberger --- src/soc/amd/common/block/data_fabric/data_fabric_helper.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/soc/amd/common/block/data_fabric/data_fabric_helper.c b/src/soc/amd/common/block/data_fabric/data_fabric_helper.c index 0426af882c..7a6e615df3 100644 --- a/src/soc/amd/common/block/data_fabric/data_fabric_helper.c +++ b/src/soc/amd/common/block/data_fabric/data_fabric_helper.c @@ -62,6 +62,7 @@ void data_fabric_print_mmio_conf(void) } } +#if CONFIG(HAVE_ACPI_TABLES) static const char *data_fabric_acpi_name(const struct device *dev) { const char *df_acpi_names[8] = { @@ -82,10 +83,13 @@ static const char *data_fabric_acpi_name(const struct device *dev) printk(BIOS_ERR, "%s: Unhandled device id 0x%x\n", __func__, dev->device); return NULL; } +#endif struct device_operations amd_data_fabric_ops = { .read_resources = noop_read_resources, .set_resources = noop_set_resources, +#if CONFIG(HAVE_ACPI_TABLES) .acpi_name = data_fabric_acpi_name, .acpi_fill_ssdt = acpi_device_write_pci_dev, +#endif }; -- cgit v1.2.3