summaryrefslogtreecommitdiff
path: root/src/drivers/spi/acpi/acpi.c
diff options
context:
space:
mode:
authorKun Liu <liukun11@huaqin.corp-partner.google.com>2024-07-02 11:17:09 +0800
committerFelix Held <felix-coreboot@felixheld.de>2024-07-04 14:04:05 +0000
commit81e854897ff627a0cfa3540021c072a00cff630c (patch)
treeb38d06def02bc99965be57add2aac0f7763f5b84 /src/drivers/spi/acpi/acpi.c
parent3018a6de3f6de0019200ff8dbbf4f807b2b4e183 (diff)
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 <liukun11@huaqin.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83301 Reviewed-by: Subrata Banik <subratabanik@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jian Tong <tongjian@huaqin.corp-partner.google.com> Reviewed-by: cong yang <yangcong5@huaqin.corp-partner.google.com>
Diffstat (limited to 'src/drivers/spi/acpi/acpi.c')
-rw-r--r--src/drivers/spi/acpi/acpi.c3
1 files changed, 2 insertions, 1 deletions
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);
}