From 81e854897ff627a0cfa3540021c072a00cff630c Mon Sep 17 00:00:00 2001 From: Kun Liu Date: Tue, 2 Jul 2024 11:17:09 +0800 Subject: drivers/spi/acpi: Update generic property list Update generic property list for build test result fail https://qa.coreboot.org/job/coreboot-gerrit/259702/ BUG=b:342932183 BRANCH=None TEST=emerge-brox coreboot Change-Id: Iecd8573343706184dce5edfc12fe7a143390e0e9 Signed-off-by: Kun Liu Reviewed-on: https://review.coreboot.org/c/coreboot/+/83301 Reviewed-by: Subrata Banik Tested-by: build bot (Jenkins) Reviewed-by: Jian Tong Reviewed-by: cong yang --- src/drivers/spi/acpi/acpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/drivers/spi/acpi/acpi.c') diff --git a/src/drivers/spi/acpi/acpi.c b/src/drivers/spi/acpi/acpi.c index 687dd52d56..bd3f89a857 100644 --- a/src/drivers/spi/acpi/acpi.c +++ b/src/drivers/spi/acpi/acpi.c @@ -149,7 +149,8 @@ static void spi_acpi_fill_ssdt_generator(const struct device *dev) enable_gpio_index, 0, config->enable_gpio.active_low); /* Add generic property list */ - acpi_dp_add_property_list(dsd, config->property_list, + if (config->property_count > 0) + acpi_dp_add_property_list(dsd, config->property_list, config->property_count); acpi_dp_write(dsd); } -- cgit v1.2.3