From e2816067202172e53dbbed9cc2bb52cc0f565216 Mon Sep 17 00:00:00 2001 From: Tim Wawrzynczak Date: Tue, 28 Sep 2021 14:28:50 -0600 Subject: soc/intel/cannonlake: Guard acpi_fill_ssdt assignment with HAVE_ACPI_TABLES MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I3677b4e545599d00a4ba16464836834febc2d1a5 Signed-off-by: Tim Wawrzynczak Reviewed-on: https://review.coreboot.org/c/coreboot/+/58024 Reviewed-by: Michael Niewöhner Tested-by: build bot (Jenkins) --- src/soc/intel/cannonlake/chip.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/soc') diff --git a/src/soc/intel/cannonlake/chip.c b/src/soc/intel/cannonlake/chip.c index 306d8eb6a2..80a6c01ce8 100644 --- a/src/soc/intel/cannonlake/chip.c +++ b/src/soc/intel/cannonlake/chip.c @@ -174,16 +174,18 @@ static struct device_operations pci_domain_ops = { .read_resources = &pci_domain_read_resources, .set_resources = &pci_domain_set_resources, .scan_bus = &pci_domain_scan_bus, - #if CONFIG(HAVE_ACPI_TABLES) +#if CONFIG(HAVE_ACPI_TABLES) .acpi_name = &soc_acpi_name, - #endif +#endif }; static struct device_operations cpu_bus_ops = { .read_resources = noop_read_resources, .set_resources = noop_set_resources, .enable_resources = cpu_set_north_irqs, +#if CONFIG(HAVE_ACPI_TABLES) .acpi_fill_ssdt = cpu_fill_ssdt, +#endif }; static void soc_enable(struct device *dev) -- cgit v1.2.3