soc/intel/cannonlake: Guard acpi_fill_ssdt assignment with HAVE_ACPI_TABLES

Change-Id: I3677b4e545599d00a4ba16464836834febc2d1a5
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58024
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Tim Wawrzynczak 2021-09-28 14:28:50 -06:00 committed by Felix Held
parent 09fe826f87
commit e281606720
1 changed files with 4 additions and 2 deletions

View File

@ -174,16 +174,18 @@ static struct device_operations pci_domain_ops = {
.read_resources = &pci_domain_read_resources, .read_resources = &pci_domain_read_resources,
.set_resources = &pci_domain_set_resources, .set_resources = &pci_domain_set_resources,
.scan_bus = &pci_domain_scan_bus, .scan_bus = &pci_domain_scan_bus,
#if CONFIG(HAVE_ACPI_TABLES) #if CONFIG(HAVE_ACPI_TABLES)
.acpi_name = &soc_acpi_name, .acpi_name = &soc_acpi_name,
#endif #endif
}; };
static struct device_operations cpu_bus_ops = { static struct device_operations cpu_bus_ops = {
.read_resources = noop_read_resources, .read_resources = noop_read_resources,
.set_resources = noop_set_resources, .set_resources = noop_set_resources,
.enable_resources = cpu_set_north_irqs, .enable_resources = cpu_set_north_irqs,
#if CONFIG(HAVE_ACPI_TABLES)
.acpi_fill_ssdt = cpu_fill_ssdt, .acpi_fill_ssdt = cpu_fill_ssdt,
#endif
}; };
static void soc_enable(struct device *dev) static void soc_enable(struct device *dev)