From 0e971e11a03afc6a983445c63737e9aae4c97840 Mon Sep 17 00:00:00 2001 From: Karthikeyan Ramasubramanian Date: Thu, 9 Jan 2020 11:32:16 -0700 Subject: soc/intel: Fix ACPI device operations initialization Initialize ACPI device operations only when CONFIG_HAVE_ACPI_TABLES is enabled. BUG=None TEST=Build Test Change-Id: I5c5266885d8b08338d17a87bb95110765882120e Signed-off-by: Karthikeyan Ramasubramanian Reviewed-on: https://review.coreboot.org/c/coreboot/+/38309 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak Reviewed-by: Furquan Shaikh --- src/soc/intel/common/block/i2c/i2c.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/soc/intel/common/block/i2c/i2c.c') diff --git a/src/soc/intel/common/block/i2c/i2c.c b/src/soc/intel/common/block/i2c/i2c.c index 70f2c21f74..ffcc4a6e99 100644 --- a/src/soc/intel/common/block/i2c/i2c.c +++ b/src/soc/intel/common/block/i2c/i2c.c @@ -183,7 +183,9 @@ static struct device_operations i2c_dev_ops = { .ops_i2c_bus = &dw_i2c_bus_ops, .ops_pci = &pci_dev_ops_pci, .init = dw_i2c_device_init, +#if CONFIG(HAVE_ACPI_TABLES) .acpi_fill_ssdt_generator = dw_i2c_acpi_fill_ssdt, +#endif }; static const unsigned short pci_device_ids[] = { -- cgit v1.2.3