diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/spi/acpi/acpi.c | 3 |
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); } |